Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4EE46CE7D1B for ; Tue, 1 Oct 2024 12:44:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C06A610E61F; Tue, 1 Oct 2024 12:44:45 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=sntech.de header.i=@sntech.de header.b="na+K2Oya"; dkim-atps=neutral Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 919FB10E043 for ; Tue, 1 Oct 2024 12:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Type:Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9QUcWnz6fid45GBubUoL7prAN4V8aOcYdytpl4grgXs=; b=na+K2OyaYLFieMg8y9ZtfgQb7O QqINAle8PwspThKDNJD7HTyEu8eRcnZufTpM0xmzVr/Tb+Dq/gpLHUvXZPShNP0kCVsd8EVmriMyF eCcEpHhpbYwLMBLKM53Gtf7ZRUopVpuytTWlfYki/E+LIy97aJtocW4Rt99cMmDp5BT/zCPIN0KdA obsHHD7FpIXj/v628JC0wGC+SxJO7zS56cpYNUWYQewn7mFb/DBrMncFe9uSoYbZER+OLtRzCCs4/ h+brEFsmxy5Sexqk5M1JeY0rNGr2yg+QQgwMZdMVJZgovLryuOarJXstNSlGZ3lI1te4IgOkrpd78 OEViH03Q==; Received: from i5e861925.versanet.de ([94.134.25.37] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1svcF5-0004px-7q; Tue, 01 Oct 2024 14:44:39 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Boris Brezillon , dri-devel@lists.freedesktop.org Cc: Steven Price , David Airlie , Simona Vetter , Christian Brauner , dri-devel@lists.freedesktop.org, Al Viro , linux-fsdevel@vger.kernel.org, Liviu Dudau Subject: Re: [PATCH] drm/panthor: Add FOP_UNSIGNED_OFFSET to fop_flags Date: Tue, 01 Oct 2024 14:44:38 +0200 Message-ID: <2002903.PYKUYFuaPT@diego> In-Reply-To: <20240920102802.2483367-1-liviu.dudau@arm.com> References: <20240920102802.2483367-1-liviu.dudau@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Am Freitag, 20. September 2024, 12:28:02 CEST schrieb Liviu Dudau: > Since 641bb4394f40 ("fs: move FMODE_UNSIGNED_OFFSET to fop_flags") > the FMODE_UNSIGNED_OFFSET flag has been moved to fop_flags and renamed, > but the patch failed to make the changes for the panthor driver. > When user space opens the render node the WARN() added by the patch > gets triggered. > > Fixes: 641bb4394f40 ("fs: move FMODE_UNSIGNED_OFFSET to fop_flags") > Cc: Christian Brauner > Signed-off-by: Liviu Dudau On a rk3588-tiger-haikou Tested-by: Heiko Stuebner with 6.11 panthor was working nicely with 6.12-rc1 panthor was not recognized by mesa anymore with this patch applied on top, things are back to a working state. > --- > drivers/gpu/drm/panthor/panthor_drv.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/panthor/panthor_drv.c b/drivers/gpu/drm/panthor/panthor_drv.c > index 34182f67136c1..c520f156e2d73 100644 > --- a/drivers/gpu/drm/panthor/panthor_drv.c > +++ b/drivers/gpu/drm/panthor/panthor_drv.c > @@ -1383,6 +1383,7 @@ static const struct file_operations panthor_drm_driver_fops = { > .read = drm_read, > .llseek = noop_llseek, > .mmap = panthor_mmap, > + .fop_flags = FOP_UNSIGNED_OFFSET, > }; > > #ifdef CONFIG_DEBUG_FS >