Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2327024pxj; Sun, 30 May 2021 22:25:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysS8IIUDRZ9JaaH6x2gSLooa4gQTbCrFGMOn4z0AdZVe+pMw+QCzMsc5MnyQieA0D7xmq1 X-Received: by 2002:a6b:ef04:: with SMTP id k4mr16135886ioh.182.1622438723343; Sun, 30 May 2021 22:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622438723; cv=none; d=google.com; s=arc-20160816; b=yrj31eU6T8GlIWn+D80GmFzxvdpvIo7KiHxYWH83TguOjv3QL9jEhNt9xQwOP+VfXz nWNeyTP6RPUJecfXXRseX8SQpElRSjpqBFJKNojYznA+yjUCOlRbtu2+oe2BuEOENLsY LIxhLAVN9XGMnkgSh7d15Xf1yvToyeDTeDkIUOX5T3yzwQiKuzOLpHyfcFFlKjz1cEiL /EPCHj+3AS/oyv8tCyjqfhQu4rn5OQZnt0Gpxll9bJeBKXGVtMAXcnSnIG4AVw4eqf2J 15xSlFrf7OZ6qMn9xoI+854FfswhKtKGjpE15l9N/U3kBaIEcfB/EtqRpMbHu2S2X6Gf yJXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=FkvZYbRbC/cAozRjP4BPGysEfk7mZXUuzUP30C8/JvY=; b=HyRzuEomOyW7BknplxRU+jxIgb2spJ5dcrlvW/ZzUUQttihlTRl6C+IyOewuITwECm xNS7lxLCZMfudZuaLCoZ/Db4EnPX7uPJu9PPbmUwTFnUUWsESGzQ8t9uLhZc26d07O0h m5jfJC+c7zdMm2bWcB1h0McdOafhanxs54jusDLGHvbxwT2ER+G5GJl2o95Kj2vaji9K bJA5WvdsKmWNpVXBWr/U3aMKPUq1ukyrD4BXAZdj5QXisID9JtokaBApZv46UyVwZrgu 9GGkKuGxak5ull+zdV0Dyfejc2lbnCnHrXo6iUN3vO2BAscCNn4kuCHD778n/0S9Kn3K /Hjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="wi/LXyYk"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si13793611iou.15.2021.05.30.22.25.10; Sun, 30 May 2021 22:25:23 -0700 (PDT) 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=@mg.codeaurora.org header.s=smtp header.b="wi/LXyYk"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230091AbhEaF0M (ORCPT + 99 others); Mon, 31 May 2021 01:26:12 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:28930 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbhEaF0K (ORCPT ); Mon, 31 May 2021 01:26:10 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1622438670; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=FkvZYbRbC/cAozRjP4BPGysEfk7mZXUuzUP30C8/JvY=; b=wi/LXyYkTYGnZ8vgzoqspxCuTt2vwfhnXLyQoApoiLvt9060phgVwMOY8z3ikEh84ScQE9+t WEIYLjMng+uwXGnZre8nrAcBSNFzPy/FlRE8AG74NCIpw4MZdot1kr/FVwoiXbubHQcTrUHd Vk4cr8GYsE93mV8AarXvx5BzTbA= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 60b47301e27c0cc77f0df7b5 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 31 May 2021 05:24:17 GMT Sender: rojay=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 3AA25C4323A; Mon, 31 May 2021 05:24:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rojay) by smtp.codeaurora.org (Postfix) with ESMTPSA id 866C0C4338A; Mon, 31 May 2021 05:24:16 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 31 May 2021 10:54:16 +0530 From: rojay@codeaurora.org To: Roja Rani Yarubandi Cc: swboyd@chromium.org, dianders@chromium.org, saiprakash.ranjan@codeaurora.org, gregkh@linuxfoundation.org, mka@chromium.org, skananth@codeaurora.org, msavaliy@qti.qualcomm.com, skakit@codeaurora.org, rnayak@codeaurora.org, agross@kernel.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, sumit.semwal@linaro.org, linux-media@vger.kernel.org Subject: Re: [PATCH V11 1/2] i2c: i2c-qcom-geni: Add shutdown callback for i2c In-Reply-To: References: <20210525131051.31250-1-rojay@codeaurora.org> <20210525131051.31250-2-rojay@codeaurora.org> Message-ID: X-Sender: rojay@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-05-28 13:41, Wolfram Sang wrote: > On Tue, May 25, 2021 at 06:40:50PM +0530, Roja Rani Yarubandi wrote: >> If the hardware is still accessing memory after SMMU translation >> is disabled (as part of smmu shutdown callback), then the >> IOVAs (I/O virtual address) which it was using will go on the bus >> as the physical addresses which will result in unknown crashes >> like NoC/interconnect errors. >> >> So, implement shutdown callback for i2c driver to suspend the bus >> during system "reboot" or "shutdown". >> >> Fixes: 37692de5d523 ("i2c: i2c-qcom-geni: Add bus driver for the >> Qualcomm GENI I2C controller") >> Signed-off-by: Roja Rani Yarubandi > > Do we need patch 1 after patch 2 was applied? I always thought all > devices are suspended before shutdown/reboot? > Yes, both patch 1 and patch 2 are required. Devices are not suspended during shutdown/reboot. > Nice to see that 'mark_adapter_suspended' becomes useful again! Thanks, Roja