Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp271925lqb; Tue, 4 Jun 2024 10:48:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWt6r6RzhtUpE0DrZT2dGoFp7AiVKkJc5OXxt1XcE7x5w0v4uff0yn/HLP2nfZ0MHZAl/ARozbPQ33COpa2tOyfdRLPyHC02Xxc54gAkw== X-Google-Smtp-Source: AGHT+IFiIDNpJhF9MKQPUDmHel6JzdiDp0TEusOi0KbnHXjjIFD0DzFi/2pbjuMuUwplydE8oksb X-Received: by 2002:a05:6214:4a86:b0:6ad:78b4:98d4 with SMTP id 6a1803df08f44-6b02bf2dba1mr592436d6.18.1717523301528; Tue, 04 Jun 2024 10:48:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717523301; cv=pass; d=google.com; s=arc-20160816; b=e5FULqXLgZ8ue+IX4vgd7Wq/udz5pOv1DcB4xj0sF1W3jSAmq54Rm51p2duLAB9P7+ uq+p/HjNVWP5q7jNhUbWoQqqbD5UANdULLW27Ugo0QpdGxESeTXiEGR+mBfsKLX7YcXv OX7o/woBiDwEaMimWBUxQt8BQ9SV45Tlh9j23ryrYBb92HAd5ojqlMzUKbjANVfBas4F Rp+k1yuwaqUyEChQzbhWuDVlsfKSxKr90B4bJXi8exLFUjzU3h8xWn6lz7lQSTQlkjBD ytd0wLdnB8JO47uLzgRChPV0NgF79uL+GQJTySQk55GhgyZz430Rst3GGyvZuib50LMM 5A+Q== 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=xan6JHlbzoN/Cx1uze2aPQDqzU0Q2XkBrsIeaRmv2Pk=; fh=y2yrWlButl3DBprT9qw9y45soeffXBkGdKMuSV0B6Fk=; b=g9xtDjru+xtN/n6qrERGpyslPnJ7F9wg2DGqJ7fGHk80wrAX5voZgWWLZq+tzxCNWP SQddHqHrfU8/JSw+RuS7iRPKw87e0BvlgFV0+LCFa2FciB3RkMmyLU1x8dRxBAgsLw1V OoFn3YzMwN46k07AxmCtEQjl5DxFqAvsC1Jolb8A8ZTmufwT95nyXlmeax0YPDcs5oSJ uemsd89mstE8P7kNFyXvW9rIZ+OB1bcKKvu5+0wbmWo8a+Df/IMZLIOj3juVbkk3r6ph u8QPf2NIVFfa9dm2hY5KrsWeKGsc7XQWSzv2BySsYciLnbkysLLgv/yZul6Yh5QBvN19 pV8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DvlyPngi; 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-201204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42b8dasi118648616d6.439.2024.06.04.10.48.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 10:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DvlyPngi; 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-201204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201204-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EC45F1C24C9C for ; Tue, 4 Jun 2024 17:48:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE4D7149E01; Tue, 4 Jun 2024 17:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DvlyPngi" Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (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 90ACF14A622; Tue, 4 Jun 2024 17:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717523156; cv=none; b=t2WmXg5nkfuxYJHvrcOqWipBthB8TRZilUAKFOk09RHeW0lcRBqrstcY7FOVx6v+B70KjX95sByKeYlLUZ3HTFZov23nXzYTZ+8jJMcIGIwF8aaOms7yd1aCQ/I9KxicAbYto1Xz7irWOhS+L1iiU1kCyRtYxitUawB0TfnvyyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717523156; c=relaxed/simple; bh=mY9B1uaFHC1uBb6M8qKUIpIxpKwXBMGQK2wfXWjLLHU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aCt8gwpC0xgkUZvABINxaakbtTMlMQoJgK6vKWTT87Sne9cCRqjSouzWQLrLK+7nZ9Y/pUxU4fgmdmRtK+kq4YybTZmw4wMnmHcZ5K0ziKITuxeE6k2iyPRbzutoHOt03AF8p1wsi58izrs2/u3KBMeSVWKzq2QMUEXUY8OOK1Y= 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=DvlyPngi; arc=none smtp.client-ip=209.85.215.173 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-pg1-f173.google.com with SMTP id 41be03b00d2f7-6c7df306e86so2512318a12.2; Tue, 04 Jun 2024 10:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717523154; x=1718127954; 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=xan6JHlbzoN/Cx1uze2aPQDqzU0Q2XkBrsIeaRmv2Pk=; b=DvlyPngi1Eg17DuoxaaGn5v1+ce9ufOrNLywWHuNzJWNno0UL9I8JWKTVd94xOfTY9 5DyoiH8VCnS430AloCLfWrPqgSkk30GG4pDKeTVMxVdLYIkFPbN+webFhd+SyDIGG37q hZ4Z2oWwttVoukVz4oHfnutitSQpoE29L/GC8G0RCCl45jU9PI8YZ9PHG1cz0UEF2I8L A+hVtlMuKo3wB2QRIokyzsMImWnFh46RCmkiWq+2Ocb3qwh/gmp/TwYbXW+qT1zUSNke lKZVdDNJwkok32dA22KhHQ7InLdfURpz/To/+U5Z5mKZK3K6oqgVOdsi9YUbjOXH6q6q S00A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717523154; x=1718127954; 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=xan6JHlbzoN/Cx1uze2aPQDqzU0Q2XkBrsIeaRmv2Pk=; b=QYWqq/cPox7APCSNArdo2LAK9WB1MOf+yzQObWfAaC6yalUhvSZ9N1IuEP+V6aSBym FmTDFJ5Y8gZ8+09QbzTlYwaGOZLXH1fQIwwk4bRKG7sb7pJKdaWGV/MD0BmFqf6EkPCJ KgcteDUlGV331D6be5w2bRP2UsrPnBLtX5XYxJ3PqEbkwCQGpq0666GUe5Yoak73gKF+ /IaO3IGPSNdHzqXQvLZqvK5b4h6+Xez30hWxwp016A8BP6FERg6KIBZl997R1P1MNrya y40aXq0scunXG0X2VLREtMKfpumtxODohH4bcw2V1pkdBpK8aZPJL9fz1nTu20y4an3p 57DA== X-Forwarded-Encrypted: i=1; AJvYcCV1yiyTKUgirxNoITxGCY4fojxkObeCHvP57ZUVhIMXpXaJFjp7vxqjBSFLpE9gqA1ELlVCaKkbwKj2uXyMVxKq/7BOxtyeqN9mD38gXrD/nbOQ/i8hzgKLJpwJ2g55rU3F0H7Msmhid0Qbrg== X-Gm-Message-State: AOJu0YwPYQhL3QjFEwQud/WFoBxAd8xQbBSltKIVMLsUcmaHed4+voDq yFLC6E4bdDXEpIs0zWdd4fHLMXRrbLMO8vQfF85A1b6bu+9OWg7NGyNXNhWQcsHxU55x8ykYiVr fbrxENkHTv64PfpPAJp6zwWGiqvk= X-Received: by 2002:a17:90b:f8c:b0:2bd:fa34:a613 with SMTP id 98e67ed59e1d1-2c27db02ca2mr149430a91.4.1717523153741; Tue, 04 Jun 2024 10:45:53 -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> <37b0404d-bba5-4a77-ad86-62c6dd308d37@linaro.org> In-Reply-To: From: =?UTF-8?B?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Tue, 4 Jun 2024 19:45:42 +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 7:38=E2=80=AFPM Konrad Dybcio wrote: > > > > On 6/4/24 19:33, Barnab=C3=A1s Cz=C3=A9m=C3=A1n wrote: > > On Tue, Jun 4, 2024 at 7:06=E2=80=AFPM Konrad Dybcio wrote: > >> > >> > >> > >> On 6/4/24 18:45, Barnab=C3=A1s Cz=C3=A9m=C3=A1n wrote: > >>> 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. > >> > >> The suspend here refers to device suspend, not system suspend. Adreno > >> goes into device suspend every time you stop using it, i.e. after the > >> rendering is done and there's no more work to do. > >> > >> I suppose a good test scenario here would be to keep running and closi= ng > >> kmscube in a rapid fashion and checking if the GPU starts crashing for > >> unknown reasons (the dmesg would denote that) > >> > > I have checked on a505 and a506 with this small script > > while true; do kmscube; kill kmscube; done > > none of them crashing, so i am going to change it. > > Hmm.. not sure if it actually idled when tested in a tight loop.. If you'= re > running bash, try "while true; do kmscube &; sleep 0.08; pkill -f kmscube= ; sleep 0.08;done" > I see no crash > Konrad