Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp552680rdb; Tue, 19 Sep 2023 03:39:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEr7lnAOhOyZMAD3GeqY+pjKUoCcEu4pqHiQaoG/7o9a1Xl1WRlZTYkZntz+mqbRDj/PsyZ X-Received: by 2002:a05:6a21:47c6:b0:14d:8dbd:482 with SMTP id as6-20020a056a2147c600b0014d8dbd0482mr8620626pzc.35.1695119957911; Tue, 19 Sep 2023 03:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695119957; cv=none; d=google.com; s=arc-20160816; b=iGV/OdEyEThzY5mJjul01QsdiKNTrj1Mo87Umr+cyIKDfRdoW7Uo2mBosJfyBoAFAd MUhK5AfhFHbqZ0Q/bAiGMmQzs5My63iGOTtInkUq9Kjq9E8s6fmQFV4cZW7jV0nJRixs 4l2eYKPtLbE1uhZ4cE181YygGTubNaMPYOknYq4S9lt1FbNZC/0RX8m5tJpyw/tV3kJm EBxylWGGY/9xjzLzTgTknuzXTizkzt4ML7dHqGEmbp+Gvw39aXnLE0nQNc451SVxnX5A LfMbBBFaHBHqB6MenZfvpT9P43Iqvy5CrDlgAdwiTA4xvNDoYp1ldWGPYW1vR5Gwmdj+ e88Q== 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=vVqBizXlIr57susmkCRr/3LQlvrykLiMDIwyT0LtmDA=; fh=xbIw5r5jCe/C8FI4dEMNBhSHi3WMeR5+RNCywZ72S9E=; b=dAWYZ+tbYmwHbPv75paEcaK43TZ3J8X1d6SW8n2CcSlRVdNcLF2oC8mmAB6SUWtdc9 ZfXDz3tYy6nu2X4YG5Jike9VYY1M+Ba9phmg9BIQK84mgYo/tNR0Sd1HipTFNez4Fe5Z txo94p2n4/15/fnc+igh5+vsOhdOubc7kgB7OSBrxeINOjSdEssnkDptllDS74FxbIYA slrCvK83k1eZKM6rZIjlqL0ftXKjRiKjRigu9tmVxsoA/B3FZhZ/P7V7H1XF35rYU72C kcoSaTQvxCC+aPf7kyc96IUDUjFwDLUuF6irV1su6geN20PoC4awb/P4JrWR46cfjN6O kErQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="s/kHgsZQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u8-20020a17090341c800b001b89bcfb2c3si4999229ple.162.2023.09.19.03.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 03:39:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="s/kHgsZQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 9EA89808652A; Tue, 19 Sep 2023 03:20:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230480AbjISKUN (ORCPT + 99 others); Tue, 19 Sep 2023 06:20:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbjISKUL (ORCPT ); Tue, 19 Sep 2023 06:20:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7110F5; Tue, 19 Sep 2023 03:20:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 928FBC433C8; Tue, 19 Sep 2023 10:20:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695118803; bh=vVqBizXlIr57susmkCRr/3LQlvrykLiMDIwyT0LtmDA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=s/kHgsZQ7y3PwnFZvHrG8Pc5mH0FGR12eIoIfRIOaE+A8mHNg7q4s9b9klbTsVLxN 7G+f/hKoL+uqUa2loh4cRIpYIEPdJWeIU6VM2ppDlXtW9AvdJ4HctIEZjRSExWOoh+ bW1QdMm2Jw1RJG3fNUWVB0QUUwpHp6ClChAVH5BOSmShG/FI3f2/+YYLI1HpxTT130 gPVXKDtnSMCodOWZHswIXm3s41kGfDjUHcn7BztGvgGOiw7CaPJY+ISiyOP6ylgHpL ZgmgrmiZJikvm234V0z+x6KaTlpCzEzUCLquAcV2kdinSPO05rk6S6d/ecaUwqEE3V atZxUyUut0MBw== Date: Tue, 19 Sep 2023 12:19:59 +0200 From: Wolfram Sang To: Catalin Marinas Cc: Jan Bottorff , Serge Semin , Yann Sionneau , Will Deacon , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Jan Dabros , Andi Shyti , Philipp Zabel , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Yann Sionneau Subject: Re: [PATCH v2] i2c: designware: Fix corrupted memory seen in the ISR Message-ID: Mail-Followup-To: Wolfram Sang , Catalin Marinas , Jan Bottorff , Serge Semin , Yann Sionneau , Will Deacon , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Jan Dabros , Andi Shyti , Philipp Zabel , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Yann Sionneau References: <20230913232938.420423-1-janb@os.amperecomputing.com> <37e10c3d-b5ab-75ec-3c96-76e15eb9bef8@sionneau.net> <9de89e14-35bd-415d-97f1-4b6db1258997@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cO6/IsiqUl9vEhfN" Content-Disposition: inline In-Reply-To: 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 19 Sep 2023 03:20:20 -0700 (PDT) --cO6/IsiqUl9vEhfN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > I also agree that a wmb() in the i2c driver is not the more elegant fix. > For similar reasons, we hid barriers in the write*() macros, drivers > need to stay architecture-agnostic as much as possible. Exactly my thinking. I wanted to read this patch discussion later this week. But from glimpsing at it so far, I already wondered why there isn't a memory barrier in the final accessor to the register. --cO6/IsiqUl9vEhfN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmUJdcsACgkQFA3kzBSg KbZ34xAApSejksqgrOmtvdFYNIlyfKQ/dmCvH5upVR9s2uBzYf4OW2DfKk9V2pQs Z6ZXZnao8LkOH2+qpxkFYz7glDSYOQAEIp7r+bcHvvXRQp5JaJc0a+5riq0WXNmP yPlF86yrTb9Lkv5NqCxGU6O8sxsnSvGecjC/Ej6TiU7iNCdsamrbHUkYAcPpmNaW xg1Ei+fI5rSbz1Ty6cVVZ33rjqN5rpssISVvHwTZ/1pOJiEJYnFA/i8ZhDboAeWJ DKR3XvELgGx3W73Np/HfR2qZb43Iz25guH98/2r4GwH3hIVdLDfq92f+hkm1hziT FSoqgVL8XATHf52FTC8wJODqxpJnOafd+BBV7sazQ9xQR1BX0GWIGSdE/gCLsrfl wpQhN2OOWuWwiE8eZK9azgnZqxDtg1RjNpiCNNI4fft/XT0LuWLp5AW+M6bG1k85 AW5jMrjuXuLyNeLH+B8NBBsxz0mDgy0hBs+ZKMdICSl+fVQfjT753qEPoJQbLKLH Qc+PaFiH/T0PXKISwv1R9eshHmLeZDmCzDVjoDzJMQzk7XSqcn07wQnWmeE2yMMh AnLFfNfL4qhw6+15dEVIFQqfu5MIDGvAqCMuP7iZ6hi+CWiGkBflCXFEi9WAvrPY h/u69r7U3sNViIfNcigbiLR6GGDTs1Mmn27gfxvRaYrmkpxBiIw= =X2+z -----END PGP SIGNATURE----- --cO6/IsiqUl9vEhfN--