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=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 93D8BC43461 for ; Fri, 11 Sep 2020 08:26:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3C1CE221ED for ; Fri, 11 Sep 2020 08:26:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="SF6ZfqEZ"; dkim=pass (1024-bit key) header.d=amazonses.com header.i=@amazonses.com header.b="bb3ckIdP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725852AbgIKI0d (ORCPT ); Fri, 11 Sep 2020 04:26:33 -0400 Received: from a27-186.smtp-out.us-west-2.amazonses.com ([54.240.27.186]:38488 "EHLO a27-186.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbgIKI03 (ORCPT ); Fri, 11 Sep 2020 04:26:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1599812789; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID; bh=Suw0PG/fZ1BCpafDijGnb5vPJXoo0m2bMenuQ7bZnxg=; b=SF6ZfqEZQxVCSMc0BR7jTVDWwqizlwPEzTc7Vsm+5PBPKNUghmOPF57AGCoivCjP 4JF5izGRZJjAWIk53Owmc6paUD+9WBBGHf71C9CEozNe7O2loJIgW++oUBhGWZgNZOp nGuRFZgZptHL4wdHoGojUwldTC+FMyah7n4uE47o= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1599812789; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:Feedback-ID; bh=Suw0PG/fZ1BCpafDijGnb5vPJXoo0m2bMenuQ7bZnxg=; b=bb3ckIdPbfyp0jKPtjLlM731ZJX88kSwLv13Imp1KPjBPNQubTO+8PVY0eKJXfgN +aNb2yeHJCChPHQgIIFCu6At/5PTuPJF4ocHEqxZvJA1uZnX+YoeAlfEXzvjchqf9fQ 5DDhsxjDcdZgJlBJpXxpsv3ST9xcFTC0WoDepa/I= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 11 Sep 2020 08:26:29 +0000 From: Sai Prakash Ranjan To: Bjorn Andersson Cc: Will Deacon , Robin Murphy , Joerg Roedel , Jordan Crouse , Rob Clark , Sibi Sankar , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v3 5/8] iommu/arm-smmu-qcom: Consistently initialize stream mappings In-Reply-To: <20200904155513.282067-6-bjorn.andersson@linaro.org> References: <20200904155513.282067-1-bjorn.andersson@linaro.org> <20200904155513.282067-6-bjorn.andersson@linaro.org> Message-ID: <010101747c45e395-e7b8299e-f3bf-4dbb-828f-c3608b2121d3-000000@us-west-2.amazonses.com> X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-SES-Outgoing: 2020.09.11-54.240.27.186 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-09-04 21:25, Bjorn Andersson wrote: > Firmware that traps writes to S2CR to translate BYPASS into FAULT also > ignores writes of type FAULT. As such booting with "disable_bypass" set > will result in all S2CR registers left as configured by the bootloader. > > This has been seen to result in indeterministic results, as these > mappings might linger and reference context banks that Linux is > reconfiguring. > > Use the fact that BYPASS writes result in FAULT type to force all > stream > mappings to FAULT. > > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Sai Prakash Ranjan Tested-by: Sai Prakash Ranjan -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation