Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp511010rdb; Thu, 18 Jan 2024 09:55:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhGqaag7Z0jjDx6B3Q0KrirzguO/RHUb8ks3nRm/h//sP/Z5VXq0FRDBUpv6TeNt/5dxtQ X-Received: by 2002:a05:6a21:3a86:b0:199:7d51:a942 with SMTP id zv6-20020a056a213a8600b001997d51a942mr1438825pzb.50.1705600546171; Thu, 18 Jan 2024 09:55:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705600546; cv=pass; d=google.com; s=arc-20160816; b=THLBLqk4SRuORymHFXpS4yIcaInA5iLx1fLp8xq57LZfwiAJuSpd8bm8U9zv0nVNlG QiDL7KNaQ/Ehip6NxFy4JhWYoaDTHdQOS/au+r+usTtX23CNNkeAkKSaYZBUwo7hTlTC 4y/n+UMzQgIMRu/EVZN8FfO4JouRyEvK2ExSattKcRaZIWJswXuVCtVZtAYvDIW2qtCQ vu+QyUK4XgCrkJRNCBZaqU4hHEhBfsK0JqQNGvVFKurhhlnVnknLCaCewaQoc+/TNDmO quV4oQ+mJmm9iTBoxJa2xm4pqN83kp04v0TxOq7K4uJNKG6B7xtij+nMiBX+rYqJlAtq EdUQ== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ij3Aid6rc3/+qPxyjn4VOAO9ySy7PRtD3+5FtjfYAss=; fh=+AQ7mXZXiKaXGTCjSo9Ln+y6ebV/OX/dXJ+HXo0/OB0=; b=CJ50XiWIbC8EXoUXWcWWaWObVO6bZJDiMqZdrrr89pJTXtzi2uc5NJp+BRF9o+WvOt nw2ATRNZ0hsdXdt95f57Ft02V9FEFO1rP5Q2prwezJvlseG4EDSMYn2wZOVVN8mOCPzD HmmXQPx4pS8WCAxpdmufEgLwH94wXY81wQnA6lX7WRljF3VD1VQhR23DiyBlNKw3Ogds +E/keVFQf4ZxGhAn1yDIpnv2Z1IIFHAoTGJ3r3KsJZCh2jV8jHUJO8xNFNfII+BUEkNZ zlf1JwxnB4ckP2+esgXtby3OKkIUBM4/fPiYisurnIGUSoBSDu41lu9cb3ypkNlr0YZ7 +4pw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RsJEV6aE; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-30445-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30445-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b8-20020a637148000000b005cdc9b091a4si1873573pgn.40.2024.01.18.09.55.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 09:55:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30445-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RsJEV6aE; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-30445-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30445-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A64BB28AC14 for ; Thu, 18 Jan 2024 17:55:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 068F82D610; Thu, 18 Jan 2024 17:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RsJEV6aE" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 973B22D058 for ; Thu, 18 Jan 2024 17:55:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705600537; cv=none; b=DBamOv7699uLlNL8kG0gsPgvL49uMyKtiaO/ri4o2RhsvzHBHyltik5BWfiHjroDdua56tFGzg1Z1FN9sTwA4oJZZAcpwUxMWex6MSRs43/jSTJA8tadldQjGRc+bOhRKOJvWIQpis55sNDmY67fNOx/wanK9T4zlxGmNRjZHjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705600537; c=relaxed/simple; bh=aisBVFiczj/jDzFOQ/gAkAjn85FMrdiPrHE0pnY7fXI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MX7y84x1HKuD2hrL7iAVll+QtJg2hs/E97jcvWfaWsE9zArETg8t78JddI/JzmqRgNt/7DdjMNgCUOuKdh18t/bmdwnWuF/JhV3ouSkI2W1K5DtEfqPZIMpk+UypM8ULj6lHp9AjL97EPMQPzNR89n9VWMChCRhGLpkDvgYAChM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RsJEV6aE; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-50e7ddd999bso14132480e87.1 for ; Thu, 18 Jan 2024 09:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705600534; x=1706205334; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ij3Aid6rc3/+qPxyjn4VOAO9ySy7PRtD3+5FtjfYAss=; b=RsJEV6aEBQbd5GLCWqs+Wn2NSyUjgdXNPMCD+Ql6TR+aparlOvaTgUYt7EYliunfrl W81DxqMiXaatFxpE2Qyl0qnPdtJIBduy4x9xB2UFHyg/EXU25CrqNyIAtGyt8TgJdy0/ 146Rzqb6ff+z3Ejse3AJJxtPTbW5TbThSdinSqHx8cjmhSMRdQz664n1YZo5lMz+a+Ev WJdSR8wUCr5G5SCs3iz8gu1EY9SsE8wDvKRkxepQcm5gkI8FD4zl3RWkSmt5o+zOKiRb De/0Qb/TYz9EOy/rRicf1WchvbXvHF3RY+P38NOJVeOeJtGJvOa0q+TA8tWTdn2AAgE6 ivbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705600534; x=1706205334; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ij3Aid6rc3/+qPxyjn4VOAO9ySy7PRtD3+5FtjfYAss=; b=naj24tezubrfFPOIPLjL5eCz+adp8e4fqYcuoDDjdcuLulHNlhP8oRYR4dkFatEALX x1ddbQ8PKiG6XyIfbiyiQNpPv+gLQ/bLUDAR4pK8TAMTW6U+IWHBvHlfCIpbUmT1AKuQ +nkaF6qK4UxU0K1Vc2/A0x0uc8JkQs2e3CgExLwV/BJeGIJjqa0W/q7hqpL04NZ1fBcT TUpzlA4RMAgJeR2kCZlgpODrSlwEm7x24JebCpsBBgDxkhHjnMTHktun9GoWNwlYuUfF sm2W3GyAt2AyTt+EXNoEMNE2V7nLzGDslpeWWRvJpYNSOY5bDf8X+z+XlQJJd2yIP847 a8+Q== X-Gm-Message-State: AOJu0YzPary5YAAm436LyTCkdsKOvrGY+yaCg0SO/ortlEaIiMLT6VIm o5z3SQTOh6CI9w/Wf3+jCMWKdOH2ufVqveB1LjHDyggAtRrgL1LIDZmuWbQRPCY= X-Received: by 2002:ac2:4c48:0:b0:50e:2f46:1111 with SMTP id o8-20020ac24c48000000b0050e2f461111mr6414lfk.97.1705600533660; Thu, 18 Jan 2024 09:55:33 -0800 (PST) Received: from [172.30.205.26] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id v4-20020ac25604000000b0050f0dc3a08esm644932lfd.151.2024.01.18.09.55.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jan 2024 09:55:33 -0800 (PST) Message-ID: Date: Thu, 18 Jan 2024 18:55:29 +0100 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 Content-Language: en-US To: Bibek Kumar Patro , will@kernel.org, robin.murphy@arm.com, joro@8bytes.org, dmitry.baryshkov@linaro.org, jsnitsel@redhat.com, quic_bjorande@quicinc.com, mani@kernel.org, quic_eberman@quicinc.com, robdclark@chromium.org, u.kleine-koenig@pengutronix.de, robh@kernel.org, vladimir.oltean@nxp.com, quic_pkondeti@quicinc.com, quic_molvera@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org References: <20240116150411.23876-1-quic_bibekkum@quicinc.com> <20240116150411.23876-4-quic_bibekkum@quicinc.com> From: Konrad Dybcio In-Reply-To: <20240116150411.23876-4-quic_bibekkum@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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!" Just a nit below: > +struct actlr_config { > + u16 sid; > + u16 mask; > + u32 actlr; > +}; This, can go here, in the header: > +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