Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp194805rdb; Tue, 31 Oct 2023 05:11:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZNAhFJA65J/TEpT+v4nYsHFDLZeo3JL5jXbw8HzZuAwfqfzBo4OSnZoAgvAFANS/M9fj1 X-Received: by 2002:a05:6a20:3d83:b0:13f:c40c:379 with SMTP id s3-20020a056a203d8300b0013fc40c0379mr13704873pzi.13.1698754272736; Tue, 31 Oct 2023 05:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698754272; cv=none; d=google.com; s=arc-20160816; b=ptqRrkTffFQjnBq+RlvZmAoDPoSqkY7jgpIKvvXVleQu0qqSWMESY9kMFX2g41pn4s goDoBoZYwdHBJK4v2nsAvym7uysj9Hkerbv3opQmblxPoswdlHeCg1Sdk2GtXCZbf4vv PSSPIUPXZNVAraNsBwpXh/wPxYIFYAYo967fjRzmRcjV+OOj/n38gtxFyfa4Yqs8MaJ/ o2E8fQKFpGYExQrA5LF1oz+bbBPgOgnQ3phxQ+vKyCwhSXX6EWPKo0yErWZXY2jEahF6 6jnX/A9ee38G1nZSHC8SFgdf6FMWooKls46lGeKOkP1gL3bPinAJJJhOjW3sxMCJVvhh FMiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uD34lv0yjN+8fpbZ/iijNK2xwQQ1WeYKZCHJ93rHuDg=; fh=4unyfggwEZNlFbuvlX4uRlmK8fGxEU5B26BvJ6mGbVI=; b=WODYSjGK9ysuFQxtxDLDpR6xM+E0pppOq99akKDf9/PyiXDaq3XyN84/f2thV/KEFh ZibAMjxj5zsqpcAaDUa5Bbb/9pJemYyto6H4dJC1H57P+Pa973hRui1/QX2sJcY6VaNY p09ycLs6KX6Euri7g4KtwtPeCa2+QaT/5Z9rwUMz/7cudzl/lgZ9oGuwhP+EN04ofcP8 zzpHh3VJclIsbYMyI0wo5e5CbTJjfg+X3Q7QyRlxVcnNZyiontmxOPU5Ah9LMJYfT/qa Tpklo5er6OsU8I2JNUt1CiSGEaQubSX3lIxPG/PV48v4+2dcwlTj+Vbv2Fv6cyzbIeHT yWpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VKFUoxFq; 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=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t71-20020a63814a000000b005b87df75d54si976572pgd.83.2023.10.31.05.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:11:12 -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=@intel.com header.s=Intel header.b=VKFUoxFq; 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=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C3C7A802F8B6; Tue, 31 Oct 2023 05:11:09 -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 S1344120AbjJaMKz (ORCPT + 99 others); Tue, 31 Oct 2023 08:10:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344217AbjJaMKh (ORCPT ); Tue, 31 Oct 2023 08:10:37 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B6C1D57; Tue, 31 Oct 2023 05:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698754220; x=1730290220; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=JLL2YhB3kzvAEMv6/JNmvOui/jNFQSuiptKeTYCJvh8=; b=VKFUoxFqzQcanw/6i5xhd6s9T0gsPoPhtB7TsxHNNmIXZXL7yt+cwrnd EZa3LR5yyQwMFpkF/DGfU5cHhp6NzjrbpxzI6FaSYldH71f/pgs7m2ptr omDkQtCVtYus/qKSEXMOeek7jCymmk1ek7w4SV4qgdBA2TR6jAJ1EU3O1 Q2ClMx7MWVTjaZqssAltayvdYabP6mdiOWegiejVW0rcHMZgZiLXCmJI/ uCPGty0aZK4X6kufq2bfbj1gMmjpNU7TFD7J1w/yWDKLhAwTLa45hcBGb jRadZm+vlwyo2Srsw2hpgD+wtwNHg/5OKtJerfVMSlekVdMWGEY7/OmVL w==; X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="6897004" X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="scan'208";a="6897004" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 05:10:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="904322446" X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="scan'208";a="904322446" Received: from mylly.fi.intel.com (HELO [10.237.72.161]) ([10.237.72.161]) by fmsmga001.fm.intel.com with ESMTP; 31 Oct 2023 05:10:14 -0700 Message-ID: <846d933a-598f-43e7-8478-04f3a0d20d1c@linux.intel.com> Date: Tue, 31 Oct 2023 14:10:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] i2c: designware: Fix corrupted memory seen in the ISR Content-Language: en-US To: Yann Sionneau , Jan Bottorff , Wolfram Sang , Serge Semin , Yann Sionneau , Catalin Marinas , Will Deacon , Andy Shevchenko , Mika Westerberg , Jan Dabros , Andi Shyti , Philipp Zabel , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Julian Vetter , Jonathan Borne 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> <7ee0acbd-e332-4dc5-a6e6-0df58913ff71@sionneau.net> From: Jarkko Nikula In-Reply-To: <7ee0acbd-e332-4dc5-a6e6-0df58913ff71@sionneau.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Tue, 31 Oct 2023 05:11:10 -0700 (PDT) On 10/31/23 10:44, Yann Sionneau wrote: > > Le 31/10/2023 à 01:12, Jan Bottorff a écrit : >> On 10/26/2023 4:18 AM, Wolfram Sang wrote: >>> So, someone wants to come up with a patch to move to non-relaxed io >>> accessors? >>> >> Is the current thinking to just make writes to DW_IC_INTR_MASK use the >> non-relaxed variant or something more broad? >> >> From a safest functioning viewpoint, we talked about making all >> accessors default to non-relaxed variants. A couple of pretty good >> arguments from knowledgeable people favored this. I know there also >> was some concerns about potential performance impact this might have >> although the counter argument was this is a pretty low speed device so >> some extra cpu cycles on register accesses were not likely to degrade >> overall performance. >> >> I could make the patch if we have consensus (or maintainers decision) >> on which way to go: 1) only writes to DW_IC_INTR_MASK are non-relaxed, >> 2) make all read/write accessors use the non-relaxed version. >> >> I'm personally in camp #2, safety first, performance fine tuning later >> if needed. Latent missing barrier bugs are difficult and time >> consuming to find. > > Fine with me, let's go for #2 :) > Also simplicity votes for #2.