Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp18717lqp; Tue, 11 Jun 2024 13:02:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8dpBpEjZTDG5Rxb+QHDsHH5sLANXqty/SdQ7TfgaknJhHbtNe/D9DzIf2w4jdyFLqUb4mYPyCFgl2OxCyx1/hyO7FQOr5OJCh9lvkKQ== X-Google-Smtp-Source: AGHT+IE3J+QnOv7WVzijZOa2fKA/VbkGoSifhw7sqi1NuEk0/LSK7o1v6nTY2D9Zl93N2pY0WodU X-Received: by 2002:a05:6a00:1149:b0:704:3438:9c1a with SMTP id d2e1a72fcca58-7043438a12fmr8271814b3a.16.1718136167929; Tue, 11 Jun 2024 13:02:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718136167; cv=pass; d=google.com; s=arc-20160816; b=oEboCMfg8BdG/d+P9lmhjxJfMc4rwOkit+v1b4RfkC8j4g40ZyvYMbQL3nJesG/ARD /Kf7VlzV8hl6wHxpAY+a8mlqbESuyG7vwD2xEc8Zn1UFt+wp2ubKHCk+aE2Whw3mEQ6m XyfxkAKMmskj1jhbQkrvF5SW9VVn5CwVTh1pW8f+GhiL3rmpKmMnpj6UkThnVCrqgpKe qmLH6iieLYFoEMMgkF+bsNg+In4g+4Jyc2HKMR0JCYTE6GyLe7np89QOQKLt4rUNc/9j fHcBEznhqIxzJ883k0eBIoZwjT9L41er7+AEjDIAbYWRwr+DGrbZ+vEeTO38lvY6zQyf P7qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QYJ2UGz+oF03p364Ad98W7RimsnHbNm8aDnnj9gG8WI=; fh=8fuEvmYsEb0tivB5oG+an3YAgFA0R6OQM9InxZF/EDw=; b=wpanjeCl8TYJrNslHtpb3QZyP16ljDVchHcOQkZWiTzkeEeDPs6BvTEsw0l5nUvVAa 1pN6Zmsk0EjGDR7qaQayOKqwSmPfpD8UKUmjqXc7lNOzJ3/FbxkaOTQiEC1c5TEcEZll V+r4q5nK/hf78NdhISVNcdJK/a4iGNc5BQNJHHnBPcEAE2HwNTDeEiNzt7vtJXHWGtsd IidjffkuvTo/k6rBoBUI6V6XHXVXXSkSHT7h+VxLJkE9nv39sw52qfXCjdAb6Alahlqy B1JX+yZE/rovb9nP7iNs3Cdd9jXSmARkWJp2wIKpLV/EgTA5EhzactsUtQH6FXk9WAHm 3KNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jj+u7llz; 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-210547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2073c8fdsi10044680a12.84.2024.06.11.13.02.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 13:02:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jj+u7llz; 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-210547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210547-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 35331B23085 for ; Tue, 11 Jun 2024 19:57:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9237C143746; Tue, 11 Jun 2024 19:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jj+u7llz" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 1D9D884E18 for ; Tue, 11 Jun 2024 19:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718135832; cv=none; b=Yx1vpLJYnmk/zn+Ek7EhxvkzW8pJtNREaXj7SIv+cqXJrPakrQhlMqYWE3LSPSPFiUJrZ0EyjK+mjl9BIY4n5UJ9Z0JQDjdVO6hGeHc3MpDgyuF38a0q091in1iFIVdRB0qxhLbzXti1s+nbixxqNu4SFqFzkih07RHDLAcN8OE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718135832; c=relaxed/simple; bh=SSh4CLZGR0x7dTcNZI89uDAy8jCEgi5taxgXm3czsKU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fpv+uDlrxdpY+c0ES9r+OUxdvKmVgC3r8Y1BnLHnfHCAjf506aTg6CO73+a6QV7EJO3OGspky+nk8/MaLFbQLNeZXY+VcBvYzv5CFell7iUEruXs73GqOTmnZaitr1pmPJ/eiFo34JTvOtPkWnT4at6KHKa29//07/AOQ5lFFFo= 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=jj+u7llz; arc=none smtp.client-ip=209.85.167.48 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-f48.google.com with SMTP id 2adb3069b0e04-52c7f7fdd24so1955613e87.1 for ; Tue, 11 Jun 2024 12:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718135829; x=1718740629; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QYJ2UGz+oF03p364Ad98W7RimsnHbNm8aDnnj9gG8WI=; b=jj+u7llzI71GBrbfizbY5mxesYLdhODdQRgpH0xHJpBnyPtAK5u0OTJytQd5VCZjcN LIQpCSuywa9wUVb7DM+yHVf//PNU8XONpDNWFgLWI+9jo2rS8JsT7x+pZAuwNOZFVys5 w1pjtoeXGGlNJh9vVRPAgIQDkrmiD58aWVWxpy0rjSacjllDKG/UIil45NCq6rz6ZcIJ UdpGD+iXxLhPh24ixlTC1OHqOrqC5z+rGPE1XsSDpXXu0djkEwsiEKBTaTJfI7FYIASY 4AW/R883KvuhlTHNqtB0SZ2vMnG18Wd/RtM5VfunB4IcpCH1aoHFXok2tyJ0WyW/esgi G34w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718135829; x=1718740629; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QYJ2UGz+oF03p364Ad98W7RimsnHbNm8aDnnj9gG8WI=; b=POCi3Ank1WcqusdXJLGud8HPjh1EdnGbEPAzItDBYl1To9o/YP46DzrYPLX04zQWH4 qPLF8coMy2ZwfCSGAxwNWog8/KWo0yxbK+t2M7kBAz56qUoqKpiV2MrX+iENAwr9FYte WN4EIFvaJORE08uRwTzX32/lEBjtzQpqQ4SrElqfPlVrL07vFzeyJfPQBgn4rGXzxsZT 1VnDMe/SSAaaIQu7nzQnIEyA25/njmoKHwUd76RztDfl6Pe+rkSpLnpda3Pw1Uq1GuWA CgP7YEocswmLtPKjmXswr/rBicfZ0lJ7NJBihhradFH+/uRRmbfPjS/jjEooceNAzV4b f7VQ== X-Forwarded-Encrypted: i=1; AJvYcCWpWBelYnJWAfnIlkBsyu9Hwhx/505EmWYU63LIkKCfrIF+YJoig5Plawn/YK7++x5CQbn4wOVK4yB9rEkDvu46QEDySa8aAdi8qDL2 X-Gm-Message-State: AOJu0YzEG+v3gPFmYn1lg1trxzqGtEKGi2J+miIJG4shcyvltnggtr50 OkYHaldHUoWcfCgyCIlkCtgraCbTH/hRi7fD7NSxsyNwV69al2GI/1tPofTGjIhT29xCzRtwzau v X-Received: by 2002:a05:6512:b22:b0:52c:999b:52f9 with SMTP id 2adb3069b0e04-52c999b53e9mr184380e87.57.1718135829296; Tue, 11 Jun 2024 12:57:09 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyybrhy-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::b8c]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52c8012a690sm1559312e87.72.2024.06.11.12.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 12:57:08 -0700 (PDT) Date: Tue, 11 Jun 2024 22:57:07 +0300 From: Dmitry Baryshkov To: Dylan Van Assche Cc: Srinivas Kandagatla , Amol Maheshwari , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Caleb Connolly , phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: Re: [PATCH v5 2/2] misc: fastrpc: use coherent pool for untranslated Compute Banks Message-ID: References: <20240524161423.15392-1-me@dylanvanassche.be> <20240524161423.15392-3-me@dylanvanassche.be> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240524161423.15392-3-me@dylanvanassche.be> On Fri, May 24, 2024 at 06:14:03PM +0200, Dylan Van Assche wrote: > Use fastrpc_remote_heap_alloc to allocate from the FastRPC device > instead of the Compute Bank when the session ID is 0. This ensures > that the allocation is inside the coherent DMA pool which is already > accessible to the DSP. This is necessary to support FastRPC devices > which do not have dedicated Compute Banks such as the SLPI on the SDM845. > The latter uses an allocated CMA region instead of FastRPC Compute Banks. > > Signed-off-by: Dylan Van Assche > Reviewed-by: Caleb Connolly > --- > drivers/misc/fastrpc.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry