Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp253661lqb; Tue, 4 Jun 2024 10:15:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+JXvVEA6jqkh3iS3F3s7BI6WGq/q49VxjNR2emwowrFJHqcDVIkUcGomv6bAw4r8oE7Jd6vvnxX0sLzUrr7nvjLFZ7Af8GMWgGYRXlw== X-Google-Smtp-Source: AGHT+IFR+L+HZ/zq9A+Y4geMPprOuvSztJ2eewVO5gY39B0i5X347qvng8uKja+PvYWiAKGD1B92 X-Received: by 2002:a05:6a20:72a8:b0:1af:66aa:7fc7 with SMTP id adf61e73a8af0-1b2b6e2d02amr368016637.3.1717521353787; Tue, 04 Jun 2024 10:15:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717521353; cv=pass; d=google.com; s=arc-20160816; b=rpU7jn+peVvzvzeEJeDdiDu13AVOBw2agCQAPGInWhXA3FfdCqS7r8snAWY7pd0wmJ /YYeQ4HVM+oOBuF7fSQ6DeTJbADhTBi7/HrVmtT1j5tD9CsdZhnpfELdos/QjDDTgA7g ZGLPgEn2kNLw0pCcbOmWFR37f3ExRvBoGehx4NKYsoxgIX0nivOTUFMLEN1Wmd7aiKE2 cv9IVfk2AISFKw3uTTkmWy/YZ7cujz9Dh8+pEIOeumtD6BZLCEWZKelLLfOxciOG0S39 C6oLkY2Rvmk86pT2kN6OGJS51lkMihHYRClkoPWSd2Jm5h0ftLrW1PTqOyApXBqtGI42 /mzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=QecifVAR+tvBUqTJQdxCWnDSVIat9xStXa2bm/K4Dng=; fh=BVGy/ATdV/oNkSWwDVRskQd/2fGvtZEp8j5m4IXxKw8=; b=IAMDQXvUinAppEnfVBVrBz+cMCnx2Zu6BQteKiOR75vOjjK6a0AjqsWN2B/UaWwZaK 3MPGnyUNbftFTiKlTJeZlTqd/543w5jgRzWNS/ur7BIfBEsaM3XVtltUK9eWssLSQGFo IRnnDqAbqDMhgvldHUI22fLCk/UnyB6o81qSrhMFE6k2w8Qpp0+5X6Pk0goV5pkcEBpq jeCnOuIP4YZgKcXap0/b+TOequzIO5cEQP/aw0MGmzbuKFeqWj8EhyXUuak7ep+/V71K QeVXeXZmU1PmbPX6Hk6LPYAhVmnI0IT+6IKAMkDFiOjjX4nlsmKH9dQgw2OJkVO4OVIo urZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cWu1WPYQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-70286727effsi1212245b3a.122.2024.06.04.10.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 10:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201097-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=@gmail.com header.s=20230601 header.b=cWu1WPYQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0CB55B278F5 for ; Tue, 4 Jun 2024 16:45:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09EBD14882D; Tue, 4 Jun 2024 16:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cWu1WPYQ" Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 EDE69168D0; Tue, 4 Jun 2024 16:45:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519532; cv=none; b=Vqkvzq1anEvHWRRfUzZeaYapDTUGBZrKjOpRnQ1SE2lWUU6FkfwTnQWMP45UBXMamc05lTTFyc5JanzIjr04/owCC1mRLkN9AxDOxb/iO2kUb6bpYC1fqbWTRLLXCwafUW2KtWW3nZNuZUGGrkr39dAVoiDCLoiDaQLgSJ7NqHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519532; c=relaxed/simple; bh=Zhw+hnOzFnrffRZ/Lm3uKtUSBRgK6wbi9BdZLz/gxRM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=E12C4ZrMnaXQ5Un7PTOxQdKpmieQu3vhoE/y3m9V6f6ThOwfJZNCPN32+HT/qnow8IE6ep4gYiczshDzgv3VmerLO1EszfXz9plS+kPBxn9pr+8nd9aPnEdHzsAF5Vo4o13HETW5sjkV4vwHTOLUGzxry1MHscaOhCDufzL0/f0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cWu1WPYQ; arc=none smtp.client-ip=209.85.216.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-2c1a99b75d8so4344828a91.3; Tue, 04 Jun 2024 09:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717519530; x=1718124330; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QecifVAR+tvBUqTJQdxCWnDSVIat9xStXa2bm/K4Dng=; b=cWu1WPYQCDx6b88gTuGqJtEOsZsqU+J1BeJiK2m9lEOyC6+uZV28VnvC/4Pm8zcBBM X5wdcaIP9RIcaJ1Q1pE7mu0z+wUrPETIFevxro21Bmaqvv74DOhPm+zSplEXeQRi0pBG BLGYWEXA+n78HK77wuj23JKk1IJUCmQ/PrQN3VB5MWOMuj0gl7uJL7V7x71y/U/Hh66k pwtm12vC1dMQX0l0haAZRp4XY+U4v7zM3o0MAs7imbUz+09CLn7vh1XwvvhLFzVUIoCG ACpQ3ygJVqgj7vi95wtRy6VA+UwW+bcZtHGWoDIR+ULTEcg59WLZDJEIQtIk4Pa1hf/c GDeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717519530; x=1718124330; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QecifVAR+tvBUqTJQdxCWnDSVIat9xStXa2bm/K4Dng=; b=D0dRJCezJkLat6VrkBHlbJJ72xcOauXQgETMZdTJ5MSg/h4cm8fLgyQEeYKdb2Rlgx qwU1Yuu+aOFdAzdAaJvQU4dji36z+f+PGMdEZ7qgrMxCYp63GATSO+7BnZxdAeipnReS X5UZmtcxTfnDeLiCn3XD5h9ncs1izfXoyxNzUxf1M1xFwJv1wUb53tiGEBBPfaNwV/0b vJ7ac0LbAT3anfLo+FmI1EH7Y1C5PwoovcUd12gxqQ5MPKCs8jjkTiAThSsrsQDE+Nhp q+t6H4VIXVEkNN4is9NR7izmUjiDPpTjMciGc1dt1cVxDBxUw0hybWY07Ve2+o0MH9RO JTMg== X-Forwarded-Encrypted: i=1; AJvYcCWPqtbuGGr1N12cYiag7kHV8uGQHaFUX1wdqXKwn7thROqDjN0P1n3kquNYRg7GNVQ2mjm6b2Zg8a5b1hZRMrGjxn3MS4SermWxj8nhMvog0bqJldkoDBxXC9+9NvYWB+AppoCEGbCGPq+wuA== X-Gm-Message-State: AOJu0YwGwHAb+y5aN7caMaVmDlUktSOOIgKCppqlTdUYwt4Y9Q84E2ip DaCiPEisED8j5ESpU+oC+7Uq/TqxIGneS6bed/HApaYEnY+nHisvtu7zExJlNiQe24ODdmfXuSY 8aXyBmHn6eyQ0xVjeW0DNP6yqaBI= X-Received: by 2002:a17:90b:30c2:b0:2bf:9566:7c58 with SMTP id 98e67ed59e1d1-2c1dc5d2962mr11454075a91.41.1717519530143; Tue, 04 Jun 2024 09:45:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240604-a505-v1-1-82ee1c04d200@gmail.com> <49fe3b01-4f00-4ffc-80cf-2a0add1ebaad@linaro.org> In-Reply-To: From: =?UTF-8?B?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Tue, 4 Jun 2024 18:45:19 +0200 Message-ID: Subject: Re: [PATCH] drm/msm/adreno: Add support for Adreno 505 GPU To: Konrad Dybcio Cc: Rob Clark , Sean Paul , Abhinav Kumar , Dmitry Baryshkov , 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, Daniil Titov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 4, 2024 at 2:27=E2=80=AFPM Barnab=C3=A1s Cz=C3=A9m=C3=A1n wrote: > > On Tue, Jun 4, 2024 at 1:55=E2=80=AFPM Konrad Dybcio wrote: > > > > > > > > On 6/4/24 02:20, Barnab=C3=A1s Cz=C3=A9m=C3=A1n wrote: > > > From: Daniil Titov > > > > > > This GPU is found on SoCs such as MSM8937 (450 MHz), MSM8940 (475 MHz= ), > > > SDM439 (650 MHz). > > > > > > Signed-off-by: Daniil Titov > > > Signed-off-by: Barnab=C3=A1s Cz=C3=A9m=C3=A1n > > > --- > > > > This all looks very good, just a nit > > > > [...] > > > > > + /* > > > + * Increase inactive period to 250 to avoid bouncing > > > + * the GDSC which appears to make it grumpy > > > + */ > > > + .inactive_period =3D 250, > > > > Are you sure this is actually necessary? > Every A5XX GPU is using the same value, but i have never tried with > DRM_MSM_INACTIVE_PERIOD. This was the original patch https://lore.kernel.org/all/20180507224750.9383-1-jcrouse@codeaurora.org/ where the inactive period was increased for a530. I cannot test suspend on msm8937 yet. I can check on msm8953 with a506 maybe if a506 works fine with DRM_MSM_INACTIVE_PERIOD then a505 would be fine with it also. > > > > > Konrad