From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22D4FC28D13 for ; Thu, 25 Aug 2022 14:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nl+4G3Q64zx9MJsyL0CW8Dssm6R4izsgnapI5VpBONM=; b=BFK9Igf5gUd73D 88KQ0ynvy97WyHeHloK5+zYb/puQ+xlothVgKAU3anGmR/VOdpshFdNQkXbqIVXvQp4iJgg5I3J7w rx0T6y94+UZ0eqOh2L3yG5hjyQ65TxOCBFf6Ei2vYCpTf4PRwSKscqlnx3gCBvvFCPpVunZJsZBKx LlkhSg+ubQQ/XQZjARHutdsK9+OJHsKIHpaAgfc8AttM8m/F5K/AlTsu4sMGQxMnoWlcs2wlbPGo/ fARYltaPnX7URofiKPl26lQzHpW1mtXJifwKN6qwwXfV9e1qzFrnS+FJk3/xcrbL8msuSsSUgACs/ 3AHr0GwqauDwXKZo/c3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRE7g-00FNz1-S6; Thu, 25 Aug 2022 14:46:20 +0000 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.167]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRE7X-00FNu1-Rz for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2022 14:46:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1661438748; s=strato-dkim-0002; d=xenosoft.de; h=In-Reply-To:From:References:Cc:To:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=TGjpNc9Iuyfn98dr3RH7hoDzKwuTCfRh4C04vBts5Fg=; b=dtZq+0iKVkD6TINHagtmuY0Xt7XGDXBcC07Ws3w6KwMSuhBIch7u07xyjVOPrzftki bEGma4xfVi3495mJITB6dNpH8hsS2ThJC2+seu3ewKmEVSoNV/0sNl2EJnRO4oP+jVlL 4zvpYjjfSO/J4+H2tjmWYaS2SfwLM13hDoAnABwGOklfxPH8H+1vWcgN0eznKvFY0c2W 2hNQjuvaSPBEEyZ2dV5ACpSKIM+Vc95E46lkInsu5i9tI8oEW5xb+nYzCzHMiwY+4I6T R3rz9zUWwryNRdg67isdNzS7/uA0J1w85EN6QrDVOjan1+5vESxMwsHzHHNpp/AlK7kS pEkA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySfLxnHfJ+Dkjp5DdBfio0Gngadwjc4Jbqft7lQCs4naYEQyjFZmg7Rw==" X-RZG-CLASS-ID: mo00 Received: from [IPV6:2a02:8109:8980:4474:9977:7bf7:b1d0:60a2] by smtp.strato.de (RZmta 47.47.0 AUTH) with ESMTPSA id f01469y7PEjjWeZ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 25 Aug 2022 16:45:45 +0200 (CEST) Message-ID: Date: Thu, 25 Aug 2022 16:45:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH] i2c: pasemi: Add IRQ support for Apple Silicon To: Michael Ellerman , Arminder Singh , linux-kernel@vger.kernel.org Cc: Sven Peter , Alyssa Rosenzweig , Hector Martin , Benjamin Herrenschmidt , Paul Mackerras , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-i2c@vger.kernel.org, Darren Stevens , "R.T.Dickinson" , Christian Zigotzky References: <87h723lodh.fsf@mpe.ellerman.id.au> From: Christian Zigotzky In-Reply-To: <87h723lodh.fsf@mpe.ellerman.id.au> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220825_074612_200382_25132F48 X-CRM114-Status: GOOD ( 21.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 23 August 2022 at 03:50 am, Michael Ellerman wrote: > Arminder Singh writes: >> This is the first time I'm interacting with the Linux mailing lists, so >> please don't eviscerate me *too much* if I get the formatting wrong. >> Of course I'm always willing to take criticism and improve my formatting >> in the future. >> >> This patch adds support for IRQs to the PASemi I2C controller driver. >> This will allow for faster performing I2C transactions on Apple Silicon >> hardware, as previously, the driver was forced to poll the SMSTA register >> for a set amount of time. >> >> With this patchset the driver on Apple silicon hardware will instead wait >> for an interrupt which will signal the completion of the I2C transaction. >> The timeout value for this completion will be the same as the current >> amount of time the I2C driver polls for. >> >> This will result in some performance improvement since the driver will be >> waiting for less time than it does right now on Apple Silicon hardware. >> >> The patch right now will only enable IRQs for Apple Silicon I2C chips, >> and only if it's able to successfully request the IRQ from the kernel. >> >> === Testing === >> >> This patch has been tested on both the mainline Linux kernel tree and >> the Asahi branch (https://github.com/AsahiLinux/linux.git) on both an >> M1 and M2 MacBook Air, and it compiles successfully as both a module and >> built-in to the kernel itself. The patch in both trees successfully boots >> to userspace without any hitch. >> >> I do not have PASemi hardware on hand unfortunately, so I'm unable to test >> the impact of this patch on old PASemi hardware. This is also why I've >> elected to do the IRQ request and enablement on the Apple platform driver >> and not in the common file, as I'm not sure if PASemi hardware supports >> IRQs. > I've added Darren and Christian to Cc, they have helped with PASemi > development and testing in the past, and may be able to help test this > series on PASemi hardware. > > cheers Tested-by: Christian Zigotzky on an A-EON AmigaOne X1000 with a PASemi PWRficient PA6T-1682 processor. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel