Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp353892rdh; Thu, 26 Oct 2023 04:19:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0iwgw65W/iet3C1WSaDL/cIXbpIVM/MCQFsnwHzP3jl17r9G3ndR027d8AqW6vNgiDsw8 X-Received: by 2002:a0d:cc47:0:b0:5a7:fae6:1cc6 with SMTP id o68-20020a0dcc47000000b005a7fae61cc6mr17934606ywd.24.1698319162620; Thu, 26 Oct 2023 04:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698319162; cv=none; d=google.com; s=arc-20160816; b=ZUD1yUTiYVtGzr73MuMTZTNMReIqsiKpP9N/pXzC4XE2AklfFFMUc+ydeZ2cd0W0C0 E3uIaZfEJAQgHFEyt2FYWBOkNjkAPnuoLOydnqIxI5SL4YVSHIQYDeAybeEJHxXfEZTu YGC1rDXAkHaiK7AmFqXPHEp/OKd3qcyIxAGrbjGzJjbWQBlzrmeJgxqZPeJ8YYaXtDqJ WzmUnosVKPtqY3uOt+FVrP9tjIvRqizP4GB9qzUUUB3jh0A5YXs2qzYDr0+fc3g6eNup Xg2A9jPBRG6UO47P+SO8fccAqM7/HomnqxzfIri90HZGSFSQswI7n6Aism2WyDkkc4PK g6hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=IWCVDeQfz80D8KxF6kheGRzPjVWrUAfuCZcpuboGmCo=; fh=GgwPFPAgrWoMsCLc5aKIXNZpy07FGav6gbBiJex2aIA=; b=XyBSQFuBs+ZW7UvxP8wLVf0rdoRD4UVcQ0eVOcUj254ounE+ot8JcStSfHP30WNlL9 tVIub062Ajgr16qdI0DGWeEixstTiTWoyR+04k1sphf1HbLScPmdoxFTiR6bi78Y7Ylq 9d98NI2sWLIt9tlsuDPLqHJ71kPjPf5ZY+YQYLMPiGyyaMxDkyKUmHgmzgXNIW9/sG+W 9xovTxBDupS04+zvwSkOe+MBDX60veAmdKxS1ZGpFx3HCgTyFSQ7rLGynwca5O49vKnd d6b5iAdl45/1ZEB76Cj+yBrAO2Jhn9+HfAtDyYtGvRQ/Uea1MiGlfBQ7zV2+Rceh0vQN w4ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Iy28Uvj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id i2-20020a0ddf02000000b005a7d0b5e17dsi14126737ywe.422.2023.10.26.04.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 04:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Iy28Uvj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E40BE81C46CD; Thu, 26 Oct 2023 04:19:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229980AbjJZLTD (ORCPT + 99 others); Thu, 26 Oct 2023 07:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbjJZLTB (ORCPT ); Thu, 26 Oct 2023 07:19:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EDA91AE; Thu, 26 Oct 2023 04:18:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BC95C433C8; Thu, 26 Oct 2023 11:18:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698319137; bh=IWCVDeQfz80D8KxF6kheGRzPjVWrUAfuCZcpuboGmCo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Iy28Uvj1JRA+FjBIpi31KjtxkmSjyeaP2x5v0hv7FqFgBiFZG02l8lVWudm+XYr/c o504d36X29yZPYoUxDclN7bFcxePLaufNzxJ5349nRDuKj2Ncz9mJD6tnZkJtTgGBd ISOA4l/+VuNis/wKkjlWFNiVX1pmZimREsnaz0OA+pfUb4HHpeOAcbdMcozv7WgBPF quQaJx6PZZDO4WU3Su3Zu6/Ra2cRXFoSdY+rhAshoEO0z50xWgQOf2yr7tvUqLoJnv dyOwkTI053yfrWznYQmR9Nu0bwEJl0E0Ii4IrKaw/W9x7SP9EJstjfWAE1EoSb7Say 042hg67nCsDmw== Date: Thu, 26 Oct 2023 13:18:53 +0200 From: Wolfram Sang To: Jarkko Nikula Cc: Jan Bottorff , Serge Semin , Yann Sionneau , Catalin Marinas , Yann Sionneau , Will Deacon , Andy Shevchenko , Mika Westerberg , Jan Dabros , Andi Shyti , Philipp Zabel , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] i2c: designware: Fix corrupted memory seen in the ISR Message-ID: Mail-Followup-To: Wolfram Sang , Jarkko Nikula , Jan Bottorff , Serge Semin , Yann Sionneau , Catalin Marinas , Yann Sionneau , Will Deacon , Andy Shevchenko , Mika Westerberg , Jan Dabros , Andi Shyti , Philipp Zabel , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <9219ad29-b9a3-4f07-81b5-43b4b6d9d178@os.amperecomputing.com> <3a305e74-2235-47ab-8564-0c594f24dc0a@os.amperecomputing.com> <1d56ceef-6573-43b9-a050-124c341a0698@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o4CF2TM7pvgzMj7x" Content-Disposition: inline In-Reply-To: <1d56ceef-6573-43b9-a050-124c341a0698@linux.intel.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 04:19:20 -0700 (PDT) --o4CF2TM7pvgzMj7x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2023 at 11:48:10AM +0300, Jarkko Nikula wrote: > On 9/27/23 22:38, Wolfram Sang wrote: > >=20 > > > So my next question, is the change to dw_reg_write something that I s= hould > > > write and submit, or should someone else submit something more genera= lized, > > > like option 2 above? I don't own the i2c driver, I'm just trying to f= ix one > > > issue on one processor with minimal risk of breaking something. I don= 't have > > > the broader view of what's optimal for the whole DesignWare i2c drive= r. I > > > also don't have any way to test changes on other models of processors. > >=20 > > Well, I guess this is a question for the designware maintainers: do we > > want this one conversion from *_relaxed to non-relaxed. Or are we > > playing safe by using non-relaxed all the time. I would suggest the > > latter because the drivers I look after hardly write registers in a hot > > path (and not many of them at a time). But you guys know your driver > > better... > >=20 > Well I don't have any preference (read enough knowledge) either here and I > hardly think performance becomes issue in any configuration. So, someone wants to come up with a patch to move to non-relaxed io accessors? --o4CF2TM7pvgzMj7x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmU6Sx0ACgkQFA3kzBSg KbaEwxAAhYGFsc2Ic1zZ5TXouwBdmMiFzU4cUxRwQCghgpdhWQi56LAU9jW8xzeb ZaAPq3k+/CARf2WdvlQ/EGIKO4SDNQudnpUWU+smJbLeLiWkRcHJVzGLfzq2q5F+ Mq5v1GNhl10Z2MSX8H+WSByGpAeYDC8/baba/zaR3KjdA/7dE5DNKHETG58aNQ7e Uy8yaWQbrIx9mW1hGeReTW1cWk+xpOKYrYNJcxi7NkPSZDufbINiJKdKvbsAytKz L0JBl3mo+bIut8H5SWHGkEbY5LBDAgsOSCnHVzI89pMZgmfT7ep9+mPsLSw0KGwL XofbaKzYa/qT8JfOn/6dVedntUEHmpmhM1ZpuweGDwH5XSWcTUlt5J3nN46NI5OS TkiWfhyHTg1Xn+Tr6ENMZRzshvnewzKimjLBQacdHgItnJ36PTuPi+FhoTxZtJ+j 2XJEz4BsPLoNJdwp6ACowQdmjYXgYl5U2bjlBlc+O/TX72tZI2okadIKb9GjcZ5Q grp7GTB/tPblPsO4y7GdwTTBlQsWO9eHUl+3kaILpSRCuDditRR3BrJnAFCbFkCf wQvbLWyKa8ArnKizUwEL7zv4jsI5brYkxHGkbC/oOjQXiWsNumOjaHK985taHFk3 T+xcW0ckSVjTV5x4DiL+UyfB71uqHdzpb8QB1fL2lqHgZAWYOuw= =Kdgb -----END PGP SIGNATURE----- --o4CF2TM7pvgzMj7x--