From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7D9AC433E0 for ; Wed, 24 Jun 2020 06:55:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 923C52072E for ; Wed, 24 Jun 2020 06:55:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="z34N/EAR"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="BTXdyDD2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 923C52072E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=K6TdqBBl+6MAbiSTdnnAUTA0VhQ/5CYSzbVCM86gkUk=; b=z34N/EAR4aOG/5iOeXNmo6mfr nLhZYw/TnFHN7FhtNxfz6royZizxzNCi8tW3kclVlsFE4q23oGCjN2BTvLGAd3a39Y2G0+1Vopq8R vkes5Z0zr9d6U1QaHhY0Zb2FZoQuwA4S3Dm8AgCoR386XyGRgMJMMVUhTztSSrf9Nqizp3Z/cwvrX /fRPYf1RqKgLBTqIwP7cHZWMZm2vrpuRTzpTHak7UgxvICOP/aI2oDWGp088kuGmF/EW0y3J5bPn/ JUD3ktCod2s38NZmg10pNW30AUeROqCBGmuG5E/PDS5FulFQ6W05ZeUQ+sSc1W5ZbDc+hzpAQQBpZ 8Xr1y9Qag==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnzHv-00080l-8T; Wed, 24 Jun 2020 06:53:39 +0000 Received: from mail29.static.mailgun.info ([104.130.122.29]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnzHo-0007xS-60 for linux-arm-kernel@lists.infradead.org; Wed, 24 Jun 2020 06:53:37 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592981616; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=mfTvbat16k8ntfxME31zkmPcnDzW9AvI4GxEfGq3e5Q=; b=BTXdyDD2oUJCToOFExR7ZdxOFSVmAuvYyO1BipAk/i4v2H8g5ZLbTYbtLPx0683suriVFd2f Nieh3zrPiEZuv87DhocXs9QRyWH7Q7YaDGw59CuZPYtPABK9qTd/hH1VZRUnx8RMElPjMkEF xPOsKe+w8EOkSfaB9P4Df22fw2c= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyJiYzAxZiIsICJsaW51eC1hcm0ta2VybmVsQGxpc3RzLmluZnJhZGVhZC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n11.prod.us-east-1.postgun.com with SMTP id 5ef2f866a3d8a44743896dc8 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 24 Jun 2020 06:53:26 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5368CC43395; Wed, 24 Jun 2020 06:53:25 +0000 (UTC) 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: saiprakash.ranjan) by smtp.codeaurora.org (Postfix) with ESMTPSA id B31C6C433C8; Wed, 24 Jun 2020 06:53:24 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 24 Jun 2020 12:23:24 +0530 From: Sai Prakash Ranjan To: Mathieu Poirier Subject: Re: [PATCHv3] coresight: tmc: Add shutdown callback for TMC ETR In-Reply-To: <20200623172532.GA1843779@xps15> References: <20200616045623.27549-1-saiprakash.ranjan@codeaurora.org> <20200623172532.GA1843779@xps15> Message-ID: <7bfbef95a0ec59fd45b101ea05a9ce36@codeaurora.org> X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Suzuki K Poulose , linux-arm-msm@vger.kernel.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, Stephen Boyd , linux-arm-kernel@lists.infradead.org, Mike Leach Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2020-06-23 22:55, Mathieu Poirier wrote: > On Tue, Jun 16, 2020 at 10:26:23AM +0530, Sai Prakash Ranjan wrote: >> Implement a shutdown callback to ensure ETR hardware is >> properly shutdown in reboot/shutdown path. This is required >> for ETR which has SMMU address translation enabled like on >> SC7180 SoC and few others. If the hardware is still accessing >> memory after SMMU translation is disabled as part of SMMU >> shutdown callback in system reboot or shutdown path, then >> IOVAs(I/O virtual address) which it was using will go on the >> bus as the physical addresses which might result in unknown >> crashes (NoC/interconnect errors). So we make sure from this >> shutdown callback that the ETR is shutdown before SMMU translation >> is disabled and device_link in SMMU driver will take care of >> ordering of shutdown callbacks such that SMMU shutdown callback >> is not called before any of its consumer shutdown callbacks. >> >> Signed-off-by: Sai Prakash Ranjan >> --- > > I have applied your patch. > Thanks Mathieu. -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel