Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5637812pxb; Thu, 20 Jan 2022 01:13:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMqsg10Sx/tIWFsC4oevuGvQbTOL+0MFxHMRJWwUVmx3TzSNFeY+T7UqBLA6Ma5osy2iWq X-Received: by 2002:a17:90b:4d0c:: with SMTP id mw12mr9624034pjb.180.1642669987742; Thu, 20 Jan 2022 01:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642669987; cv=none; d=google.com; s=arc-20160816; b=uMNWRO504atKl0lDeBIV8e4ndNhNOv3P3oB14VLlT2nzom5oir6ZNYh33CETDQMwEX aTgivNliTz0M1EoV+iRCV/gdMJEvO40d1rhAWxyCZNyzRLruOFWAXqbMxeApVxGA+R/t dBP3Z7vUI5ni1BvwWnEVdcUDH4r35ogsASP7S5+omAlvkAkDTpJABhKChuiMEXNEVwIp BoHyz9UdLtluE2qrsMA/SBmHqGIBMZASMiW7j+0+kvekMPwqH/y0AIcr2WTPbaKcD4AR GTY1CVaWV8XoMO0FlZNVdgJ+byvalKWo5BeDjdj6ManPVitSdIO9JOpfvBrBsX43huDF 771Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature; bh=PXNNbzROyGOSXu3Z+k6OKKBWDzl97aAmRM32qh7TiVQ=; b=cmbgDl+sFb1E4Sfdp/fc+RFXzrj/2Vz/BEo/sYXeT9yqlhg+iqtKPSKK7zjRs3MSsM 7RXE0/5RIRVMfQSCITHmdFANTp7eB56BLGu/Vb16xJe49vknmIZGJrVlu4LnQn0wUWW4 1l/G9KrZI2bwmGv3Kz59jYFiK5ko5UgPr6L3IdXNI7MF8gSF1ZoaM74HHxTfvmqfsXB3 iiNL5IV+JsotLVjITLRu8rWfmi7fVggARd6iUb476vybPgO0MTIWTJjTVRZr8EfpdT4F hZabtxYYBNbrqxd63ZGatv+Pz6Q7je9kMRMtz3FO57YczH4XsHaI4Z/cQc9StHk7cr7n BvyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=wtX8HGOh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si3116315pfc.278.2022.01.20.01.12.56; Thu, 20 Jan 2022 01:13:07 -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=pass header.i=@suse.de header.s=susede2_rsa header.b=wtX8HGOh; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241735AbiARNKI (ORCPT + 99 others); Tue, 18 Jan 2022 08:10:08 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:60220 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238429AbiARNKA (ORCPT ); Tue, 18 Jan 2022 08:10:00 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B43C31F3A1; Tue, 18 Jan 2022 13:09:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1642511398; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PXNNbzROyGOSXu3Z+k6OKKBWDzl97aAmRM32qh7TiVQ=; b=wtX8HGOhrFg0h3Q5UneoMzpKaWzZ2O7xu1bx++vWf5YUR4mGGw4PIis3TkNuuTFF3qqav4 XIKf+DbGYgVJAYQpiJ+ANqXBq16ddcBm5SUJXu68ZJ/8Mxl1PFRvVewxYkQvISnQZuCIjr 8lwF+r2pFdWjUSr9Oje/PG55MkXp5Tg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1642511398; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PXNNbzROyGOSXu3Z+k6OKKBWDzl97aAmRM32qh7TiVQ=; b=e84QMXHBR7/VIHEJGkDVe/22kUYzDpnRD/Uw7Q5PumQYp089doYlmFTiiLpYSRLElbB9Ua WYeVXtn5qdB4TrCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4418B13DC7; Tue, 18 Jan 2022 13:09:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jNnaDSa85mEvCwAAMHmgww (envelope-from ); Tue, 18 Jan 2022 13:09:58 +0000 Date: Tue, 18 Jan 2022 14:09:56 +0100 From: Jean Delvare To: Andy Shevchenko Cc: Wolfram Sang , Terry Bowman , Guenter Roeck , linux-i2c , linux-watchdog@vger.kernel.org, Linux Kernel Mailing List , Tom Lendacky , Robert Richter Subject: Re: [PATCH] i2c: piix4: Replace piix4_smbus driver's cd6h/cd7h port io accesses with mmio accesses Message-ID: <20220118140956.1e0538e7@endymion> In-Reply-To: References: <33a0cd08-a336-34b3-d36c-f827b8054e9e@amd.com> <811d6ec7-7eac-dfd3-5927-4adcc2251fab@amd.com> <74eb7c8f-7072-495a-fc26-b60bf0a1f51a@amd.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Jan 2022 12:24:41 +0200, Andy Shevchenko wrote: > On Thu, Jan 13, 2022 at 9:42 AM Wolfram Sang wrote: > > > > On top of that I'm wondering why slow I/O is used? Do we have anything > > > > that really needs that or is it simply a cargo-cult? > > > > > > The efch SMBUS & WDT previously only supported a port I/O interface > > > (until recently) and thus dictated the HW access method. > > > > Is this enough information to start v2 of this series? Or does the > > approach need more discussion? > > I dunno why slow I/O is chosen, but it only affects design (read: > ugliness) of the new code. I've been wondering about the use of slow (*_p) I/O accessors for some time too. All the SMBus controller drivers doing that originate from the lm_sensors project (i2c-ali1535, i2c-ali1563, i2c-ali15x3, i2c-amd756, i2c-i801, i2c-nforce2, i2c-piix4 and i2c-viapro). So basically *all* SMBus controller drivers for non-embedded x86. I suspect that most of this is the result of copy-and-paste from one driver to the next as support for different chipsets was added in the late 90's and early 2000's. I wouldn't be surprised if most, if not all, can be replaced with non-pausing counterparts. But I've been too shy to give it a try so far. I must say I find it pretty funny that Andy is asking about it in the i2c-piix4 driver when the i2c-i801 driver, which he's been helping with quite a lot in the last few years, does exactly the same. -- Jean Delvare SUSE L3 Support