Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3702860pxb; Mon, 24 Jan 2022 15:49:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuHZrf5RsdfrieKdiY1r8KFpp+3JSr/TFju8swXNi4QIamwBRnssVLJ8sgfKolHmX43Jri X-Received: by 2002:a63:5712:: with SMTP id l18mr13109143pgb.343.1643068155311; Mon, 24 Jan 2022 15:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643068155; cv=none; d=google.com; s=arc-20160816; b=g1X4k5I29lV7hzWwuynFBHfI1yqnYtpvC/fBljhKlc7ayZhA72JI26VHE07sgaSa8G YpSCleeYItvfuUZSalSPGnLAydZyMA1dxT2Fl57x3DtfciKybPlwmq6WY2e6Rc2c08M6 eaRLrzqDRpvvDtgW5lUzJCb1+JO3Mzbv/58Yxl8iATlXG1/epBDD3zLvPDfknQ904BLl vDIPCvGz2O++WvW9WDO5OxI+/D6rgVa1f0s3BS1KhXhiuh6Mqls9MzaYw/hcIJmq+1ou M/wkpoeWgTQFfb2ivOSayyW/aalNJpCYEmqkfiXkDZFuFi6fN5U4nVLqBQtdlhkxkNud kiKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TC2Qg5fchkropblpKki8xCZt76ZK/5zfu1VjOi+d/uc=; b=MQcGpwkGbqtxPZWjSyyECMg0mxqRD45yDfWRLztVe5fdmrp7Sx9WeRQZDNv0//PG+w jPF6tP5dXw9gg3bHYObGE3fACoIqarsQYrv8qd/71O6S+EnPRzlN9hvXlukeTDG3lVYw lEUm7YiRra1Ja3n2Kftiq6MtML2+ZJ1w7fhfo+8pLr/AkIlISKhmrlDzJevbqKFJCQL1 zLPn7T0BixRFju8Y68mWLMMyVLHpaoRQQkH00chFJfldkyQkIbAtpccJK2AzND6mpDn0 ePfYkYWbUa9NGLp4YDWEzk+DkaMu1RZxNwJT+wonQdKmLFVcdWTdzrtxawoK4UVXmlV8 2lIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YMVdDZq5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si10993387pgb.674.2022.01.24.15.49.03; Mon, 24 Jan 2022 15:49:15 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=YMVdDZq5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356950AbiAXXpx (ORCPT + 99 others); Mon, 24 Jan 2022 18:45:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1845326AbiAXXMF (ORCPT ); Mon, 24 Jan 2022 18:12:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A982C0A02B8; Mon, 24 Jan 2022 13:19:00 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 3ED0161469; Mon, 24 Jan 2022 21:18:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08831C340E7; Mon, 24 Jan 2022 21:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059138; bh=Onf+22GTqc/G0V7OktqFtzEvX9dOMso2ZB1VPCpd4NI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YMVdDZq5GK0zHswNs0GjxiiIIDuP55wlcUWI9HtmACRPK7I3m+dhmWCIjM47ZTVp4 9iU6ty0MTSlkklJgkrvOwTO9rtd2jCN/3CvYAOdK5qZEhP2Elh7ZbdkZqbldaZj5zp kk+eGnTo9ZLB6WR1PXHUpLbhjM9DjtqZ0G26Me2k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rob Clark , Bjorn Andersson , Will Deacon , Sasha Levin Subject: [PATCH 5.16 0483/1039] iommu/arm-smmu-qcom: Fix TTBR0 read Date: Mon, 24 Jan 2022 19:37:52 +0100 Message-Id: <20220124184141.511596979@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Clark [ Upstream commit c31112fbd4077a51a14ff338038c82e9571dc821 ] It is a 64b register, lets not lose the upper bits. Fixes: ab5df7b953d8 ("iommu/arm-smmu-qcom: Add an adreno-smmu-priv callback to get pagefault info") Signed-off-by: Rob Clark Reviewed-by: Bjorn Andersson Link: https://lore.kernel.org/r/20211108171724.470973-1-robdclark@gmail.com Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c index ca736b065dd0b..40c91dd368a4d 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c @@ -51,7 +51,7 @@ static void qcom_adreno_smmu_get_fault_info(const void *cookie, info->fsynr1 = arm_smmu_cb_read(smmu, cfg->cbndx, ARM_SMMU_CB_FSYNR1); info->far = arm_smmu_cb_readq(smmu, cfg->cbndx, ARM_SMMU_CB_FAR); info->cbfrsynra = arm_smmu_gr1_read(smmu, ARM_SMMU_GR1_CBFRSYNRA(cfg->cbndx)); - info->ttbr0 = arm_smmu_cb_read(smmu, cfg->cbndx, ARM_SMMU_CB_TTBR0); + info->ttbr0 = arm_smmu_cb_readq(smmu, cfg->cbndx, ARM_SMMU_CB_TTBR0); info->contextidr = arm_smmu_cb_read(smmu, cfg->cbndx, ARM_SMMU_CB_CONTEXTIDR); } -- 2.34.1