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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7E0EC6FD1D for ; Tue, 21 Mar 2023 10:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IBQEf2IkbSy9Cl8f0ldXb/CEpODcOLx34wMxH+AeUko=; b=pUdWAyeFG9NJT1 3zOyMzbihtrVJG/n2/CQOJtT9aHToPbGw+ESmj9CXQ+X62N26IqbA4FwHHTsybKLGYf3T0SJLIfPs 2LN0g7oO/w8YqJwEX2bOfG7fBQBuF2fXNtBQWsfkJN7KzDmPlFj7cX6xuTLWpBu4DxKm5pc20IBIx kodhT6HVztwhizk7zUf0fhA9dlYMYbRAb4wqwdIKtymZdXo2ahBFPJmeiPuiMkpad6Rqh8rdSMi/k luXcXiZR7mkCHBMozVhSSnICKuK3meF5qik+GchUltemBJW2Q43pmT4JvDHx/pkkzXYkc2fKr7TF/ hrlLhVVJiSW1Z6EXXgFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peZYQ-00C60y-2m; Tue, 21 Mar 2023 10:49:22 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peZYE-00C5xg-38 for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2023 10:49:13 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 81D65B81597; Tue, 21 Mar 2023 10:49:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DE89C4339E; Tue, 21 Mar 2023 10:49:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679395748; bh=lFrhGmdkTFxcK/nSQtquZbsauyHMMzGRh7efYYXHDPo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JR/nMl0sAK2bVSXiC1DPMMbcGlrE8/62NrjsAh9CJH82qAYCy0lbsuqmNSPOpLzS7 Xk0gykLi3WrcpUVhjh3NfUTYwV7EDPolA1tkgooppWcTb1JE6BC1G8bHqLKLpjutED D63rhek8VTSdxZQXQdiv6RQRFk06Yrja7+1ORTcwBZsjiAsvNQ7BEoG+GNvsQqKwk4 JshAQybdAszRiF4cT6WMvqYICUdyUdjKVpeqy2JSpK2vJHKZc6I6L+XOXNHtabCZHP vro1WRtEcVxQymfJ6Hnm0s/HjMI09Ter4DGJVjS1kkehpLNnniFaD6I1L2g2xNzg9l OIDoHqKHZ+9Ng== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1peZZY-0004Yz-0G; Tue, 21 Mar 2023 11:50:32 +0100 Date: Tue, 21 Mar 2023 11:50:32 +0100 From: Johan Hovold To: Manivannan Sadhasivam Cc: will@kernel.org, joro@8bytes.org, robin.murphy@arm.com, andersson@kernel.org, johan+linaro@kernel.org, steev@kali.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] iommu/arm-smmu-qcom: Limit the SMR groups to 128 Message-ID: References: <20230321091332.18334-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230321091332.18334-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230321_034911_163092_679A88B9 X-CRM114-Status: GOOD ( 12.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 21, 2023 at 02:43:32PM +0530, Manivannan Sadhasivam wrote: > On some Qualcomm platforms, the hypervisor emulates more than 128 SMR > (Stream Matching Register) groups. This doesn't conform to the ARM SMMU > architecture specification which defines the range of 0-127. Moreover, the > emulated groups don't exhibit the same behavior as the architecture > supported ones. > > For instance, emulated groups will not detect the quirky behavior of some > firmware versions intercepting writes to S2CR register, thus skipping the > quirk implemented in the driver and causing boot crash. > > So let's limit the groups to 128 and issue a notice to users in that case. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Johan Hovold Tested-by: Johan Hovold Johan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel