Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp175650lqp; Sun, 9 Jun 2024 23:31:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpoH0drvxbOKsbtb/H396KB+mJj1hppFuogijEvc+p5168yZMZQ4pmGYPcVBc9orGiRq7Wk4cTJTlMrOTTwiVBhPvGxfxCjzObROC6yA== X-Google-Smtp-Source: AGHT+IFy2bizgwMnDzT8fam/KHjw3zuv2MzWF/myjR0Q0mQlcaw1yU/YmWXeWnsjJeUCeLKiN18Y X-Received: by 2002:a05:6a21:6d9d:b0:1b6:7d90:1c96 with SMTP id adf61e73a8af0-1b67d90248fmr2975933637.22.1718001104135; Sun, 09 Jun 2024 23:31:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718001104; cv=pass; d=google.com; s=arc-20160816; b=OFr8cmqwZcQKdcFB7YLQT/m7a4Z/wdnD3De/n79HOn4qDC4pIM+U5jm0IAkbTWosYQ s8BbXfZvbfblLq6vWRpy4ZDDS4OopdpIMM5UIceuWPLTvbuEOx75yZntYTotH8ZQp2l0 kFbsrWqz3/ehIWsbxEIVEAi9XkjoH5I0vp3onfcUg0jSvNfOd4HVSW5t6erSVFHPcMq+ 2xIzNkBd8VL2mjXtqDOzWRE2Wbz0sc58GBF06F1MOEaDFHpvMVT5BZtkBnk6OW32zxrU C8tXwBEaA5ruNyADA5x2ARhv0x/ylOLg86jseEk1QNiYaSlMSdO6z+DQr6/f5vSW6um4 CpqA== 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=0foBbzkj/yZAJLvDMQGWe5daB0oiOZ9HEzG6T9Jt6MY=; fh=t0fUnWQuzD6CgvrUNVTlEFz2yRmtAH343/JMOfP1P80=; b=nVsOdTgh8ziIFJLX3uzn8CmclSTpPBcfQy5xBiUGYHrjxyOdNrzyKRlGT0D00FVaQV iMnj0alF5MdRM0zzbACHVaPI3NHgLNZsGLR8ki0eZ5dSdjQRwYNU4NrOHoD2Oz+973HT V6w+U+m6S+L7dFuFk9LWgQKyjbxzDUq4VJvuszfZ2icwNRY0k5W6Kt+DcvcucBOTpmHQ 3591CUb/o0yng4bmZQVUdZOZbtNGvSvKTRrGqadk7Fo/28AsJ1M2JPGuJUNWSB09iVPH m/mzGLdcmI5zSEUe7mBrntoNnSX13bHCgnZXbil8Pkbn0MaejzC1kSyehaK38WHQqcJi 0Xdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MNNpsrM/"; 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-207740-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207740-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. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de20831c1esi4881347a12.146.2024.06.09.23.31.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 23:31:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207740-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MNNpsrM/"; 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-207740-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207740-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 1AF9528061C for ; Mon, 10 Jun 2024 06:31:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 074651A716; Mon, 10 Jun 2024 06:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MNNpsrM/" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 7D90E628 for ; Mon, 10 Jun 2024 06:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718001094; cv=none; b=mC1hIxfz4eA4Kuu00WyX+KHTznL2QLE/t6TQCqrkYA+nU44imutJLiTb2Zt3eDFywP5DJZJvQ4qykgnrEKZzXwOMlmvaQwtoM6d6cHdwkjb/hzy6aaR1kwu1snx0nn7Jop/byNKFJ2djAEuUXOPsJ/HXKp2lWCme6UMasHzeEsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718001094; c=relaxed/simple; bh=N2noYsSnZJffPMWVBvrKUxmMIE7p3Vrjzwc2uv2QjfE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XkoQvyndPtCS4LglDh69yNCsDTilWRHAKsffmXSbw3aIBRgiUPFRjr+ntkTPqZCAj5lYX2pFeGxvxVTA3OO6NOJBypaaJP1ebNnkmCEco8k6p6SfbNbvrDgiddO7v9U+xLztVXPs8vtfoyCidCdFzKFtaZ83nFNj1xqNYq7A7mk= 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=MNNpsrM/; arc=none smtp.client-ip=209.85.208.174 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-lj1-f174.google.com with SMTP id 38308e7fff4ca-2ebe0a81dc8so10129521fa.2 for ; Sun, 09 Jun 2024 23:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718001091; x=1718605891; 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=0foBbzkj/yZAJLvDMQGWe5daB0oiOZ9HEzG6T9Jt6MY=; b=MNNpsrM/OKtH+5O43YIxRKWxKn+hrwPrZu/vHSrXmRQ2rZf/UmhwyYkJVOzOPbew1U V3zRtaip5J0z7Xt5vf59D1fDw4ASrcZ4uwrlt+wa6jEN70Jgf9U5zLG4pXJuEeMsbJFO TxWhax5DqPfUkWejzaLEy+3QK2F1OjUzJ+2up5DKcO7I5GFUFg//zioxk3nC95COoTy+ 3eECb527ZrTCgyoQIMHLpize4hmQ5HdFqpCNDCRcCoz6pZmDLPNWjWa2Cfoizw/Z9rXu WJePR8t9M0bV6pAt1Iqns8TgM3eM1LFuemG/wOcnx9MdDSaEYovMo8wTOAx+XzY8ZgAJ epsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718001091; x=1718605891; 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=0foBbzkj/yZAJLvDMQGWe5daB0oiOZ9HEzG6T9Jt6MY=; b=rVEgkWgWDXczNDjKjL08d1GyWe1P6AOpJzvf5BK11E8AJIYrf4m9ri+61NMRGMp9j2 CjKGTZmESQYoemSkreVLGOp3Kn+UHmVEKsJHyPAcFA81fn1p+SXG0A1aqAiAD/Prx+4D I73xcDUrSDOMdHbZTSkfD70H9mEsnnKUDAr40Sz6QDARw6Wz7CUwrXcUIInnUSQ8DLzT jKK+SxydOR9kkVlmGnOTcUDNCphkSVqpanhHxD3BmIW6UYn07Hu1S/ZEebiVBXUDBRFd fE3tkMnB6wMQq63vEsX4Zl54asug+IiPauRPLHXN7dXAux2rHX3qwEZimLCyKBTXQ7/I EAyQ== X-Forwarded-Encrypted: i=1; AJvYcCXQXQY2NbutM+t2fCD2zez9bNImJ9ppEJQPiD7M+68hLgyMRTsHal5EvkoHLxMAB25Ddx25EkCQ0xf7m1Dkl74MQcEdwYEkayFC4DpW X-Gm-Message-State: AOJu0Yx579P/RMnaYbXmYwYhdTZHHxpoieWsD/XleNk1rcIF59TtiqKJ 421LlCE2RayA31yWJ7JROIGune6XM1iVT8pqeMTqHIZqNc5lFRdilC5/UUnHnDY= X-Received: by 2002:a05:651c:1042:b0:2eb:d5a9:40fd with SMTP id 38308e7fff4ca-2ebd5a942d2mr39653051fa.53.1718001090636; Sun, 09 Jun 2024 23:31:30 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ebe673fe28sm4103891fa.53.2024.06.09.23.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 23:31:30 -0700 (PDT) Date: Mon, 10 Jun 2024 09:31:28 +0300 From: Dmitry Baryshkov To: Kiarash Hajian Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/msm/a6xx: request memory region Message-ID: References: <20240608-adreno-v1-1-2e470480eee7@gmail.com> 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: <20240608-adreno-v1-1-2e470480eee7@gmail.com> On Sat, Jun 08, 2024 at 11:43:47AM -0400, Kiarash Hajian wrote: > The driver's memory regions are currently just ioremap()ed, but not > reserved through a request. That's not a bug, but having the request is > a little more robust. > > Implement the region-request through the corresponding managed > devres-function. > > Signed-off-by: Kiarash Hajian > --- > Changes in v6: > -Fix compile error > -Link to v5: https://lore.kernel.org/all/20240607-memory-v1-1-8664f52fc2a1@gmail.com > > Changes in v5: > - Fix error hanlding problems. > - Link to v4: https://lore.kernel.org/r/20240512-msm-adreno-memory-region-v4-1-3881a64088e6@gmail.com > > Changes in v4: > - Combine v3 commits into a singel commit > - Link to v3: https://lore.kernel.org/r/20240512-msm-adreno-memory-region-v3-0-0a728ad45010@gmail.com > > Changes in v3: > - Remove redundant devm_iounmap calls, relying on devres for automatic resource cleanup. > > Changes in v2: > - update the subject prefix to "drm/msm/a6xx:", to match the majority of other changes to this file. > --- > drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 33 +++++++++++---------------------- > 1 file changed, 11 insertions(+), 22 deletions(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry