Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp284181lqb; Tue, 4 Jun 2024 11:10:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhEorZojhGflFjw+/ktVo5+9BgkklNb+5DIUOo/Nn1qIx42EVGulgHcg1MPppHpTashVTNvgSZ5MWggT9wzZzOQNRnH/y0ItifUC+BCA== X-Google-Smtp-Source: AGHT+IGWIoafPDLPbmvFnp2aT9ufdtg4wvl1Y115qh8I3vG5x/vY20XgMXkz3LASlAtlCJnD/wUS X-Received: by 2002:a05:6a00:32c4:b0:6eb:3c34:34bd with SMTP id d2e1a72fcca58-703e5920c1cmr264210b3a.3.1717524601355; Tue, 04 Jun 2024 11:10:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717524601; cv=pass; d=google.com; s=arc-20160816; b=Gf2I45b2xJuB8g4x4lrwHqOoqO8IpMNEHGi+XzZQiNXHC9WqSqGe/I8UFYaFEr/Tnr 6jEmYWAIaJ172KoDN7WyqPL8AAn6h33ArxqAG5SmJ2cyVQr2KgeBAdJfovKvMpnJbx7M yQTpcW0nsGYy7vRFXpjGB50N8VulK6d+nNKRTkcgHY1Y0Ul7K8JPyjBby+edGBXyXvV3 xiwHGn2PNIDfYyd1+PlNwbkNBkkk+kwH6JeRnq79sq6YS8w3yt8+Bh8uynMKCHRO6UmK NWECpWxqMDerUzYWWcfI7EVZOYRx/8FYwrelMSPc+7SIqDMvwI9IwSR/3pwYz4pLDf4X yEkQ== 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=63v6j8hzC+Le93kyoeflCRDkGNVRCCu2mfp5KUaAnVQ=; fh=EneNw+U8haUW/c1q1lrfXA5zplQwB45sgcuaaHrcYc0=; b=Il8T4KrIQ1TvXRazihKKT5J/fo1mpJXjgIx7k+xHK/SPNle6qt6thzUsfa75LRZUpc LtcTkYCyOvMk/n9UmKZPRT2uBSS64/oXELeiGSJD3xReAjN4KDHxGe3aJZYODfCX8bph UETHSrIcqOZZg5a0V4Tw1pOils4JxN/fchOFxZK9cFr9rnPVkI2XBcd1cpzd0yh9pVeC o7p/yDWOOY0chUGoXaD6HJ7P6hOhb0AVOZqVVQi1L+btsLRqEm3XAptmVCwObhY1YhzZ /au1ZsmouSSOTuuvWCTXayw3Q/rbaq7URemp6ZwvDYr+A+ulWWq3cIqtfnxZ7ZI+ZGdN /ieA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nj4UnR5c; 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-201165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201165-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-70242d57d5esi8527191b3a.333.2024.06.04.11.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 11:10:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201165-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=nj4UnR5c; 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-201165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201165-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 CE401B29D05 for ; Tue, 4 Jun 2024 17:33:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29B4814A089; Tue, 4 Jun 2024 17:33:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nj4UnR5c" Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 F41D612CD98; Tue, 4 Jun 2024 17:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717522401; cv=none; b=uX5FRfCuD6VboTDkFUJvd1G7ndc3zPdPzTUe2TlnLP1UKdjaSI7yQj0iHdHHjCq9rmiz5kRvVT5gJsiJsaN40eG4zD6GIUQzVZRE7KtRqfw2ZtK/gOaFDWAYjGu/I5dmXpd8vB4wivKqaW9FE7UzulvNGqiWnJQMfI+PPaKMWiE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717522401; c=relaxed/simple; bh=YuGOADg4czSzgm002ZqSN9+p7jih/VzRmBx506gij2Q=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=tilOWNWwkXbjM01xXeSRVnmntc2VDOQhZOYi8qS/rkg80qOwY2ZBufvhAyqbfWjUE3iCjwwgcCKabDcNMDrmTLFjvcxxcFOjH63m6rtWajES6lBSr0N29xbpmnXLrha0qPuAlXKTQZIpZ6qXzG9UeVuMj2Zh8f2FlNP78Oe9xYk= 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=nj4UnR5c; arc=none smtp.client-ip=209.85.215.175 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-f175.google.com with SMTP id 41be03b00d2f7-6cc3e134f88so1082119a12.0; Tue, 04 Jun 2024 10:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717522399; x=1718127199; 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=63v6j8hzC+Le93kyoeflCRDkGNVRCCu2mfp5KUaAnVQ=; b=nj4UnR5cn/o4ZbnYkfR6aeZ7RPQwU9j3FmyzY/Kkicm5MevTrtbohq+r1HIuNT4vfS FfcXf276FhvhZvw6Pw7k/wobqupIqv5p5p+c2Hfziz3T1kVFJS6OlZ7v5GcR/1SoMUL5 qBMNfjsZ3SxHC+En2erUJnv8cO4ysdjEAJAo5CYwoo32m7AhHl5dzSurok/A9MPIdPr6 69QLlKRwnI0mOjqmOGJaADs+ehPBIQZIuWyTfdr7XAcNGqI25ZBqRsvHk1c1IL23Hbwv hcjwNcGeNm6iaIrxtT8LUVWYvNKJfgXOTALPIudFc14xCVMGAI+J57cIejCIdULi5G3o /blg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717522399; x=1718127199; 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=63v6j8hzC+Le93kyoeflCRDkGNVRCCu2mfp5KUaAnVQ=; b=CWyuaxgKTbM6+ut8EXUiqETYK4rdcyqTdqWREUnDM30OX0BWAsFVBYXLl4XuL4mtbw 15GidBxsgdqf+m5KuvzijQDoIapAH2DGNFU7J84DKi2KP4QIznldqEB8bO4aJIGInmGc ISX3dMsyU4qMmofr3RWd/X4cA39jV2hpNi9/Sp81CU8ZPrhXaLcuT9UILzvU4AZ94ypW RCXHImN+zSWhUWC0LuJYG9DZG7rJgMi2/FN5FBNMCuw+fOBr5jyBSvdcTibLwapzQLuB sJg3j05dvTUi8v03FmQDjr41AE7T2c15RcPql+xQaKNsjb0Q99RB28xP0PRtzaGVWsW9 KObA== X-Forwarded-Encrypted: i=1; AJvYcCXZIHTu9CCmDkM5f84vRILfVPPF66mOl97s1RMElltBA/XltAaFgFjEXMavSox/1CWKcN9Ov3cc9a4ZZ8G3mCasEhjy7wZmoXXbVa86TuSG4/nTQFJKB68hPPgNvHrMvb87xKw4bj0//FLb/g== X-Gm-Message-State: AOJu0YzEt3VjS/5N75fESGsL2AKRLZ09GPy4u+9TWYyWp8j9Rjnjk0xu N8oiW+r82ixKMBe/Ukn1f1rVTuP8ac08N8UBA+xHI3qSTT5iBsMZfaEQHJBNY9g1i6Ygzh7Or3+ IO/NhbdOy96DTOaAu2ZzhBFwxNgx4z4srtwg= X-Received: by 2002:a17:90b:20d:b0:2bf:6b68:5219 with SMTP id 98e67ed59e1d1-2c27db63af1mr114715a91.41.1717522399093; Tue, 04 Jun 2024 10:33:19 -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: <37b0404d-bba5-4a77-ad86-62c6dd308d37@linaro.org> From: =?UTF-8?B?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Tue, 4 Jun 2024 19:33:07 +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: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 <= trabarni@gmail.com> 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 MH= z), > >>>> 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.or= g/ > > 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 closing > 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. > > 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. > > The more testing the merrier :) > > Konrad