Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp286969lqb; Tue, 4 Jun 2024 11:15:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYq5NBYe9tasljfIzW3LGcUjWBm7nxbmQmBAzwBlt5SjPKWvEGy1L8e3TJbBCCmnE5z+EQkFq4kyO56moXIUJSmHr1OZQr6OJjh9lFkw== X-Google-Smtp-Source: AGHT+IGGJYIgUskm2FkjbZYMW/kClziuvBrVFSv/KhF1vpxlXTb8rw8MSGlxzyiXi7x5jw57OQ+y X-Received: by 2002:a05:6e02:170b:b0:374:968e:7edd with SMTP id e9e14a558f8ab-374b1f65d04mr595305ab.27.1717524918055; Tue, 04 Jun 2024 11:15:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717524918; cv=pass; d=google.com; s=arc-20160816; b=ZJTxBcf4rDmloWPebExzWTDm5ZlNWm3rkSj7H6s7ERsFfxw/jsEHSl6UA7ena2oUmT 8U8ykvWYJocYP/jqO6xc8ereEfupl0whAWZcXX/V24qy+y0yVCLOIbOKSO6F5gI2DthW ULl9Y1HGGTn4HUwzhwY+oZlldcXQZjN2Yj0SsZwPqItrQIAcysshuXJ01q7xYMgrBd7g cyBp7o7FozWeb566fG3AwFRWCwsNgmU69BQL9IbBP5orKpFqgMzxIe3Bdy+No+b1IEdU RmZSGqLD7iL4BzBkhngzKccPOuEZZuWR7bpkSRpvnw3Y2mBWcKzmw+ZLDAvbs9L5Zxba XCJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=6GeqWLi7NNbGWYRb6N4n2qfBVPfozE0EINuphnmhX3g=; fh=Mau/Nz7JdBQE5zSuJDyBcTBMBEG2kpLilGicORrJOAc=; b=NtKb8w4Ivvdt+oYx49IWWvoqBG5QdiyekEhMrE3oudhOgANeVSaANzbhXbgzNqmBdq BW04yLaUwumE62BmhxSv6tifOlNojtZtHrpl0FcdblWFkc7uRTbcsiESahiWhwGEZMmp 1kOwn+BX7Wv/oLBFtvSx0QVfsr0reBOnc1ytzXV5e13/UfDCJKqvDCV8b1AvUIa029Rb Xn/64uokhzpd+Hpmc7CYMAKT7D2ImC0vloYQxIsMFkCuNTsKDnOVvNwlI09T0Z1i3qC8 20TQ7OMpLU3eGZJQW6c7dO36wAm6OU4Ln5nAyp6OoHZqkzrnVygcRSupN1SS7LPkLAO4 ZGeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xa8F1eB6; 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-201177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201177-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e071c0si2459438a12.414.2024.06.04.11.15.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 11:15:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xa8F1eB6; 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-201177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201177-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 EF638B2BD76 for ; Tue, 4 Jun 2024 17:38:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 373C114A088; Tue, 4 Jun 2024 17:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xa8F1eB6" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 9A62D146D6E for ; Tue, 4 Jun 2024 17:38:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717522730; cv=none; b=XWakVot+pVxAhv4d8xBmPvlT5Xh445ivh3/Ce/110hdsDfdYJuHuO2TNbZg3eVATjf8GOsKYa/z+ZevT94AtVC1uqbZCPX1bck4OAiognml1n+mld353tY9L+l5WuJ+h0WAekK5+SFjWrlMv2It96QcGu5B4TXQ26/lKjs7jDB8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717522730; c=relaxed/simple; bh=BuksyYCQScRNH6DaoM04EBEjib2Y4rHkqfxdMQJGTx0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AZ3KpdjiBOtJ5Iy+qPzwiEUVPtBRXL9M20HfKN6F/bMfvRILGOSoPF6EiqaErpJB1TRs3riFpeAnsRN0sdu13xfT5OEXgyXJNOpPUR9AoV56ZDkGpdNbZZehFgN8HYeUeHWQtmv8Zn0JANXYeBR48fz9SceTrZQe8GtAWWaQ+uo= 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=xa8F1eB6; arc=none smtp.client-ip=209.85.167.47 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-f47.google.com with SMTP id 2adb3069b0e04-52b894021cbso5500005e87.0 for ; Tue, 04 Jun 2024 10:38:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717522727; x=1718127527; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6GeqWLi7NNbGWYRb6N4n2qfBVPfozE0EINuphnmhX3g=; b=xa8F1eB630ImusPYStAx8DBQJtxH188LXnPImZ13ecF8W/mny0paGWXZYyTX8rvdxz gS47MUa/cl/NTyVz7u9DgveEJPwfC4ggTM2c2YFLGEOh5WFJLJuaMfVWbco11vzjIrBr 0+Vd0cm6Jlj0bfJypcw7W+d4dIK7fj3Vy4SGqsbTT9LrZWxFS/qkjqH/iNqDqbPXdZMS sNEA1si54JgrVoFBoH87GCCP5NJ5o8f1f01d147fBPrlDaUj8nsGe7pHJ3LMqHVygbfB JK23xp847UzfrptUnKH3hSp8Byinma8qHbnEufZiOi0n05F3sayJz49HyGOz5TOmseAJ j1LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717522727; x=1718127527; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6GeqWLi7NNbGWYRb6N4n2qfBVPfozE0EINuphnmhX3g=; b=LH7IMYI0fN77Di/yzAZXDwkTDvLgt98Ky/XOqmN+aJZnpXeT2dK/ukejltk4rL9ETK DEyNxUN/75ANTRrHIvqxIBJw211QEEuB+IW70wi7mGew+exW0piUwb2CvqlJQvwRS0q2 LGC0vmlUFLuiXW1MXvXP++tKwPukr/j5no8t7GfZbzaIzEoEHBBUnMaQYsgRQykf1ZQw 84UvL+fmLvzFpx+qGYPqPrZAlyPrbwLvtol3/DyZ6TTW9TBQtH4xq41y7+f7wiB6EYX5 IjRAQGNhy2IjsTqs4y89FQys4rOV8y51K0JW0/by9guuXm895jLF/tNqSJt2eCy1lrAq ehNw== X-Forwarded-Encrypted: i=1; AJvYcCVJKnjEMddjTd3VQyKEMVYCXdA64I+npVIjKY7QYNqXQafwt8qERfsymfwtc/qdceZZUJXE/kIpqV5dybnfUDPU7++o1k9sR9WyYBvw X-Gm-Message-State: AOJu0Yz/Ksrp+kAgeuqDEHWmgh5fD6sZpmmWW5T87MZyuPBwNlqBRnsN c8hmE30eB9tckZ0fPzg/5+WuiL5ZTJ3JVW0Isv5utnDcgocSi3pHRwxowIlX0uM= X-Received: by 2002:a05:6512:3f14:b0:52a:4217:d6e1 with SMTP id 2adb3069b0e04-52bab4b7c13mr184790e87.4.1717522726713; Tue, 04 Jun 2024 10:38:46 -0700 (PDT) Received: from ?IPV6:2a00:f41:909a:a11e:b2c0:1360:9a97:b2b8? ([2a00:f41:909a:a11e:b2c0:1360:9a97:b2b8]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6919c82af3sm275604866b.120.2024.06.04.10.38.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 10:38:46 -0700 (PDT) Message-ID: Date: Tue, 4 Jun 2024 19:38:42 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/msm/adreno: Add support for Adreno 505 GPU To: =?UTF-8?B?QmFybmFiw6FzIEN6w6ltw6Fu?= 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 References: <20240604-a505-v1-1-82ee1c04d200@gmail.com> <49fe3b01-4f00-4ffc-80cf-2a0add1ebaad@linaro.org> <37b0404d-bba5-4a77-ad86-62c6dd308d37@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 6/4/24 19:33, Barnabás Czémán wrote: > On Tue, Jun 4, 2024 at 7:06 PM Konrad Dybcio wrote: >> >> >> >> On 6/4/24 18:45, Barnabás Czémán wrote: >>> On Tue, Jun 4, 2024 at 2:27 PM Barnabás Czémán wrote: >>>> >>>> On Tue, Jun 4, 2024 at 1:55 PM Konrad Dybcio wrote: >>>>> >>>>> >>>>> >>>>> On 6/4/24 02:20, Barnabás Czémán 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ás Czémán >>>>>> --- >>>>> >>>>> 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 = 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 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. 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" Konrad