From patchwork Sat Nov 25 20:52:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Adri=C3=A1n_Larumbe?= X-Patchwork-Id: 17105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2151703vqx; Sat, 25 Nov 2023 12:56:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5npwer3eBfV7HMDdYkRoveThkWmhfphM8kyWwqG54v0rqGrGDwKxSgnInMA5YQbFS9QKt X-Received: by 2002:a05:6a21:a583:b0:187:636d:a61e with SMTP id gd3-20020a056a21a58300b00187636da61emr9043609pzc.42.1700945811572; Sat, 25 Nov 2023 12:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700945811; cv=none; d=google.com; s=arc-20160816; b=GOgrHpBCNRtUO4ZhUQSgzKQCwq9/GVWu9D96SbpB0b/cU+kuVe95QJ57ND8upXtNjF gyc9rw75g0iRwP/dtXLAo43rbA02ROwTahn5sxE5sKjjamAfKs+FDnnl7ZlcQMX3Zh9G OcfKOAuouYyD6ZI1XXfmvVyowXzXoa/WkQou5XPQcMy0VfKYCW1DTXpvabteOjA/PZzh oHy7r5n/6devx44+ImLMtAAnM4/46TSG93CmNT0RI+W21pHN0vhGCPCU+5UcATPWMAyM KPAJmAszBFJ/7S12GOUz4fBPCyGm8hPoH+wSSI6Un2e5T0+9CC3wZoCoOD6wXWsZO53c 0jNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ulcVg2IkerG/r2ISDhb8Ya2O96u0CDDS1gkLqvG2hU0=; fh=cSHm+nVwN8cjRRKF1iYWd4A94Bvv8YZ/kWIZ7P1vH1U=; b=R4aSCw9lNTM7ohIlxuhF34eZrKbQ/K5wY3XtieftPjWuf/DF4MVGCbHTuQfK91bec2 DrOKTw43kQ0cDMa5QMUB7PJwELWs8ChriS4bWpjmImOKBrwC0fmVOWAtSda/H4baYMQG YyQt5+0esf80l8+KTAlJGOUsc3zHcqhYhe/KnEfd6xKPCLLwoOtLs8SEJgIm3Cn5XyTV W4KjukLYOhulcggaySjy0gvW6FQqY1zPdJW9TY/YA+0X/vn9bQUchKvxbyK4aSBCpyxu 0SffdrmXbuYblF885qGC0BoIMP5iH4qWZmoL4ZruuaKX60SWauuaIRbOoPRo/+gkiqfw fBVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PYFXWcql; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y12-20020a170902b48c00b001cf69f110e9si1366773plr.368.2023.11.25.12.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 12:56:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PYFXWcql; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 57A0180615ED; Sat, 25 Nov 2023 12:56:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230049AbjKYUzg (ORCPT + 99 others); Sat, 25 Nov 2023 15:55:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbjKYUzf (ORCPT ); Sat, 25 Nov 2023 15:55:35 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7530C5 for ; Sat, 25 Nov 2023 12:55:41 -0800 (PST) Received: from sobremesa.fritz.box (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alarumbe) by madras.collabora.co.uk (Postfix) with ESMTPSA id 54CB86602F2E; Sat, 25 Nov 2023 20:55:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700945740; bh=d0hv3YyRAgqiF4M37fzP8Ro2Ds0NYvFuhF+NO43K8yo=; h=From:To:Cc:Subject:Date:From; b=PYFXWcqlaFIhqfWxjCWnAqrGxvf9qhGqJWkGGEQX4Td2rhjSPojxrreqGZZFi0tLI RbctpvuWVUwxujJ9HgRCI3NXBZ0qyJ69ESSr2SDrIZ/iQ2qhwRZ4x9mT+2q6PtIpV2 rdIWgNIs0HqP58e25YPkRPssTz+Qw6isU7+3unEj10slEORnM+CZKg4vv4u34/fNJo E+1ZRaGoldtufBXk7aajVMx97naRox+rocY9BHcfpX4nj0Lk5mt3B0N3/dSHhx/bF1 3IDz8TI3LR7PH2YvOAr6BVJQAXkQP74AsZyxERyreRQIh9dYzLs7YrBTezVAYPrFgj 6YzksXs6X56EQ== From: =?utf-8?q?Adri=C3=A1n_Larumbe?= To: Boris Brezillon , Rob Herring , Steven Price , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , =?utf-8?q?Adri=C3=A1n_Larumbe?= , AngeloGioacchino Del Regno Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH 0/2] Panfrost devfreq and GEM status fixes Date: Sat, 25 Nov 2023 20:52:01 +0000 Message-ID: <20231125205438.375407-1-adrian.larumbe@collabora.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 25 Nov 2023 12:56:02 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783570955383914907 X-GMAIL-MSGID: 1783570955383914907 During recent development of the Mali CSF GPU Panthor driver, a user noticed that GPU frequency values as reported by fdinfo were incorrect. This was traced back to incorrect handling of frequency value updates. The same problem was seen in Panfrost. Also one should consider GEM objects from a dma-buf import as being resident in system memory, so that this can be reflected on fdinfo. Adrián Larumbe (2): drm/panfrost: Consider dma-buf imported objects as resident drm/panfrost: Fix incorrect updating of current device frequency drivers/gpu/drm/panfrost/panfrost_devfreq.c | 17 +++++++++++++++-- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) base-commit: 38f922a563aac3148ac73e73689805917f034cb5