Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2788606rdh; Wed, 27 Sep 2023 12:41:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH11TXKSVOv5vQVWY0nLiAN6Tq8IgNaJ3JWtB0YDGG9y+vXNtUxvvpFpzzbNF8R67FLU1wI X-Received: by 2002:a05:6a00:21cf:b0:68f:cc47:fcd7 with SMTP id t15-20020a056a0021cf00b0068fcc47fcd7mr3163774pfj.28.1695843696730; Wed, 27 Sep 2023 12:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695843696; cv=none; d=google.com; s=arc-20160816; b=YVqhhNPKJzuCufgoxI+TkRh0dgITSTgZrki5hX/ly19GFiC8A4N0m1STBUJfVj/0Se AbojUKfN9H4/QFPL1aYEJhC6KbAPG9ubhrqiy1huEF2zcfP6yK2UnJYqUySNLm5wM+0U wWsVNsYyupTAjUwu9MT1ZpOv7HkIi3BEYL0fCmlRtxSI35Hm43dECqDgrY7yovPVzx3F /fCJ7PaoL1vrwLHSCKkwSNwah87pZd6X50zMxbXtPC12UkCkbcSPKLYWEPNDV0q0+9K+ uWfgUj3Ashgzll0klyygIUvq+XoJFrrWFPmU99+dh/KmwnHVb9hyabmUcXSNBx48sbqO LEXg== 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=lGBTujJv9f/ZZnz44luym045cfP5zny2lEWjKYdqX1U=; fh=65A5gUvZL8eSA8/1So2OWz+YMVWiEh7Yj20oys9/IMw=; b=QGavMRMfoWuXXFfrdkp7oU1jBWwek6/Hz13LEen3BqE+tApKSC9NmvovqhnRlslAEq kr/V+8KMQd+4Zy5072NsrYn7heljpdl8d6ghcsIQtW3zy9wXO2Yx7X7czicbYS4VJ8YY +mcE1VkwKHTgQnf9W2Nvm39zCtPXmJuOVcOy/YPTr6035NR8sL6AsjtwYvnD8lVt0BZH BVjfbTQ2Gq+7PLqJbjFjj1picdhhXS9H7bx7MQ3fjtnr50JLHFoTBMNBPYTzkdtO3W5f EoBsUl5RYHOSey1GqRJZhkmEt4OX9fBV4s39fZLq/v/4wV9Ov//u2ifyEV5SY5xrBjL8 NQEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fe9epdi4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ds7-20020a056a004ac700b0068fa57d2442si16471854pfb.130.2023.09.27.12.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 12:41:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fe9epdi4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 46CCE82429BB; Wed, 27 Sep 2023 12:38:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbjI0TiO (ORCPT + 99 others); Wed, 27 Sep 2023 15:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbjI0TiN (ORCPT ); Wed, 27 Sep 2023 15:38:13 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACD08195; Wed, 27 Sep 2023 12:38:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 926D8C433CA; Wed, 27 Sep 2023 19:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695843490; bh=lGBTujJv9f/ZZnz44luym045cfP5zny2lEWjKYdqX1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fe9epdi4aCGuW1eF4w5rzO0Xzjjsb3aFGAl7M1evPIighXg5O8HzF2pbv2weq0u8c 8tZgUYHgrBID6mwEwTHpJzSUx0V4Lf4nE6o7knUmcVZ0z0wAgB0YnDgd2AI85Y6BKx IXbU084kCqU/Nocutynw52CNpPhu1kND0lrjDQfYStmQtaaeKLyvbRc3SlsC6wph3a MQcYgvhI5RrDhGb65XCSwwvQjLkFQSA3nTr84RWl6J35KNP1QIP++eCLmt46EJSLlS a8iWShlr0FE4Yp9vkXlTbTODZyZl0tYw1gPcK3wISzCi34oDfIbSy0YZCwg3zToX97 pFkFkhTFp+0Wg== Date: Wed, 27 Sep 2023 21:38:06 +0200 From: Wolfram Sang To: Jan Bottorff Cc: Serge Semin , Yann Sionneau , Catalin Marinas , 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 Subject: Re: [PATCH v2] i2c: designware: Fix corrupted memory seen in the ISR Message-ID: Mail-Followup-To: Wolfram Sang , Jan Bottorff , Serge Semin , Yann Sionneau , Catalin Marinas , 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 References: <9219ad29-b9a3-4f07-81b5-43b4b6d9d178@os.amperecomputing.com> <3a305e74-2235-47ab-8564-0c594f24dc0a@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fkMkjJQxLyFdQNxM" Content-Disposition: inline In-Reply-To: <3a305e74-2235-47ab-8564-0c594f24dc0a@os.amperecomputing.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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 12:38:23 -0700 (PDT) --fkMkjJQxLyFdQNxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > So my next question, is the change to dw_reg_write something that I should > write and submit, or should someone else submit something more generalized, > like option 2 above? I don't own the i2c driver, I'm just trying to fix 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 driver. I > also don't have any way to test changes on other models of processors. 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... --fkMkjJQxLyFdQNxM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmUUhJ4ACgkQFA3kzBSg KbZ6DBAAhkOsLHfj0HyxKHf97+1+l6j2E3BfwFnHgRYc5dE7iApWaP94tVdbTY7Q mgIFaQHJ/Y4yBjRC9EnHISK4fLpJGB3GE2iuQxReMth5vFGB+Taeqp/Xbi9jAPFn IymQQCUN1PLRVVoze475Hl+TaxhFK6d9aNuUlVL5NeMzZ1b7FlHBY5oxqEA8omb6 eymok+xfhxw+Lc+6xHamP0FX5yQuNdFmgyoIjWl5eVcM9lG/bcRa6oYcM5CAkF8f iVc5hAT/18bvLp8dfnt/6zdfopcHJIkz2vEQcF7TgHQEHzNCwOEK3GPB1Y2QAWGt r1yLvN1gmCzLafXWjVMcbYRXJb3BTR4PM4kAhDyxEi3L+BpzfyJVseUdZCfjNH2t O3VApKYxOzGbqkoImpw/cKX98rryggAhFU2EK/alPPjfgbzTyyRgQ1QwcWawAHTm dkLAbquguT21e1Qbt4brqnKMdqzB5dBIKA7hl5hrNlgiSA6/2L/E8ayq8EePUkJf alEPVzp+SzPY9DwVr3KyhjhYqM4ihJyj+8uhTO3AzWDpcg4Oc5XY5qKZDUQGgG5S wD+QXbymowS6V5iGOxN30DtGoVp8kVuqOP/qSVfaPXYPBwhj9RzlzBT+8+ru1Bey XRefnMvXGmeSRi1ZxmEvdQ0bNO6gsWIVvuDMSjvI9A2xxTxnZt4= =Tl9y -----END PGP SIGNATURE----- --fkMkjJQxLyFdQNxM--