Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp896622rdb; Fri, 19 Jan 2024 02:06:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSfe20o0Uvih+APN4hSlB0AM5XDlLZb0NDzIUwgvmkTrNHAP9UwebnP2iOuPABYaLyXhu8 X-Received: by 2002:aa7:d04a:0:b0:558:cf66:973d with SMTP id n10-20020aa7d04a000000b00558cf66973dmr1219632edo.62.1705658763950; Fri, 19 Jan 2024 02:06:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705658763; cv=pass; d=google.com; s=arc-20160816; b=Y5+96LnVc/qOSdxL9ntSO4g97AFBpPNIy/eFtusM8GdvO8poMALUsrsbHyfKjWhMWW P18rM2GfqeEH+AZey1c7YBcdzOK/k8JY52V3DrhzfYyqu6noSFs26MigprTF9x9WtK9/ 6HhsaSENEwYQOsIRZgrSJGSBRRNZpRiyhrGrl+9rnw0c6nTCp4y9lpQJ/wTncm6pCbxT AZVoeLrW/o8iHvGa4RpgdA+ksRdn36EwnQoD+yD0v15H2xL8tCEWCgOtSP8ipld9sce8 QoL2NO0XIzjhmp0IJ1GZ2sX1NQQugHSti9jB0fBtWvgf/6NbnjrAfKglr+yi3kJRS5hw jBRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=KRVA1UuE/kzOpSKsLsQz6w/DMtoThu8NzoYWjfs0PFw=; fh=E/IcgZJSbm6VUH8YefLDPydBpzjJplp3ofjcJz71Qz4=; b=rwpXDnNyvGzqpySFxLpdv6B8SucGzOJOJXpCA1rgCq0qg1mGE2+OYArk3/0lCW7YC2 q/67d0PVkg8hZKpl6BinbHTztDJPfkZmlUsdc4Wr1drTMvb0S6Zx6kdm0I8bJYIpJtHY CsEnWA8kWxOo78JztUam1/wfNYQTKUIm3TQA0msChX0w9bBOXF4UUjNi7865KdOJGdBJ To/rbWmFpvgd0ZiQMSXYrLmeZpQgNsMHQlquVXOvCJx4pvZWdnskH929AHThHIeQdeu5 yz8gYYW7FEm7yEagmLraS4N40kO3yCBM9VjkKqkgdMcqUSt3FAa8sDzPfr2JXQCllLyN 40Fg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="fSJYvA/a"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-30994-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x7-20020a056402414700b00559678c9a0csi4550445eda.603.2024.01.19.02.06.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 02:06:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30994-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="fSJYvA/a"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-30994-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AFD691F23DAC for ; Fri, 19 Jan 2024 10:06:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62D693C47B; Fri, 19 Jan 2024 10:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fSJYvA/a" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 306E5944F; Fri, 19 Jan 2024 10:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705658752; cv=none; b=JR1S+gjTu9ZwLa0o6xzICA1+8+TQCt6zVRumlfXGLo9xLSAYPFAK93u4yruCJOoC3ye7ZjMvc8Ju4833lFz8vWoUM5Xjr/MPVj3tthZMsaD4+GP3quWile8ybxUnvoBfdgLC+MG0B33QSEN93X+uCqQHYfpiy59wRMhkhIuzb2o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705658752; c=relaxed/simple; bh=u8p9mCUVfkz0WU9cO8UB76nso42+7Zw/S0jK9+Wpv3Y=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=idyIJ9M+sTV48+mI7nFQMcR4tlA+96vYLY7s5NsIqphBqtYdloL+NjhrSP1dXkGGuMp6xIOS/IMiapk4nzgjg3zqR0MDb0HIk04K0LqO0LSrCFhM4R+nOv3q/TNySfYqs5cyE8IBx1uC0olYXeb/FKmIX4Yu3/umiRK7iaIWgD8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=fSJYvA/a; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40J9tOFD003598; Fri, 19 Jan 2024 10:05:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=KRVA1UuE/kzOpSKsLsQz6w/DMtoThu8NzoYWjfs0PFw=; b=fS JYvA/aIT7ZSkxMz9tWYq2Ij+OAgi1KL8QTmWb5Y3M46oim2GW1cfTI1q/3vpahOP smnDNWZU2+jlg4oYnV7QdhWT/59V776dy2TqrTQyXrkU6OumlhNX2TC2Z2DmKKrK R1quiNbfFgtJI7Br36Enrcm7XHf87Kcu3LXycCmNx2po9j6/IItikyaD3/vTzUbY OfNgvATiJGgdohuajPWz4e5YDScqw2ZRLAr65k6U0s2A3LxjF3DfRClqN+QKatTc d+/UwP3DAfW1W89rPy3ezno0b472npV3QTCcXz5LCQuN24XahNYMZDfcVIa+CFQZ 64Z8IlTnOQwIw184vlZg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vq6uba2jq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Jan 2024 10:05:29 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40JA5Rs5003868 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Jan 2024 10:05:28 GMT Received: from [10.214.66.253] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 19 Jan 2024 02:05:21 -0800 Message-ID: Date: Fri, 19 Jan 2024 15:35:14 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 3/5] iommu/arm-smmu: introduction of ACTLR for custom prefetcher settings To: Konrad Dybcio , , , , , , , , , , , , , , CC: , , , References: <20240116150411.23876-1-quic_bibekkum@quicinc.com> <20240116150411.23876-4-quic_bibekkum@quicinc.com> Content-Language: en-US From: Bibek Kumar Patro In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 5_WUllb4VAkzDADCg50QtQu2C5YizFyf X-Proofpoint-GUID: 5_WUllb4VAkzDADCg50QtQu2C5YizFyf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-19_04,2024-01-19_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 clxscore=1015 adultscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 mlxscore=0 spamscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401190044 On 1/18/2024 11:25 PM, Konrad Dybcio wrote: > > > On 1/16/24 16:04, Bibek Kumar Patro wrote: >> Currently in Qualcomm  SoCs the default prefetch is set to 1 which allows >> the TLB to fetch just the next page table. MMU-500 features ACTLR >> register which is implementation defined and is used for Qualcomm SoCs >> to have a custom prefetch setting enabling TLB to prefetch the next set >> of page tables accordingly allowing for faster translations. >> >> ACTLR value is unique for each SMR (Stream matching register) and stored >> in a pre-populated table. This value is set to the register during >> context bank initialisation. >> >> Suggested-by: Dmitry Baryshkov > > Since it's your idea with Dmitry's review suggestions, I don't think > this tag makes sense. > > It's normally used for situations like: > > Colleague X: "Hey Bibek, I noticed x broke on y, can you fix it?" > "Sure!" > Got it, thanks for the inputs. Will remove this tag as it won't make sense in this case as explained by you. > Just a nit below: > >> +struct actlr_config { >> +    u16 sid; >> +    u16 mask; >> +    u32 actlr; >> +}; > > This, can go here, in the header: > Sure, Noted. Will add this to the header. Initially made it local, since it is only being used in the tables. Thanks, Bibek >> +struct actlr_config; >> + >> +struct actlr_variant { >> +    const resource_size_t io_start; >> +    const struct actlr_config * const actlrcfg; >> +    const size_t num_actlrcfg; >> +}; >> + > > Otherwise, this looks good! > > Konrad