Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp369843iog; Wed, 29 Jun 2022 01:46:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s+URIGY1xA0LoaMS8EhG6bJVooXgUv4mSinzyhXZlykGbwsQt6aFXoSEDjOEZmoiOGAwrC X-Received: by 2002:a17:907:3e86:b0:6f5:917:10cc with SMTP id hs6-20020a1709073e8600b006f5091710ccmr2205841ejc.53.1656492406621; Wed, 29 Jun 2022 01:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656492406; cv=none; d=google.com; s=arc-20160816; b=EeDTMOFP1uK/JI4HqlzSPh+XBxEFgM24MrTWcKrtyGp0tAHB/NIRPPaFkj9LSpx2jx kNuoqs6mWX646Wdfcwc4COpCUDyapsBpRMyHX7JP2TQr0O6KLznH8ZPr/Ongscka7Xtd OO/SEwYD4Nqhe+JfSG5l3Y5vi0Mv66C3AiD/bK8uFD42wj3WsXM36M2BAII6XeMPSqMO J+8r2+yHgxVdYqmDiJp7BRqygUmaJNM7HPY+HJmTZUcUL5WqPsxR5vhLXx3uOwc0YlVX mLcOz8nLRQiEY1X5nw864v3hNjiWlthbEgDDYxmh9cSvL6YRzXpnShTTRqa9rcz+OGT6 2h7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mndE8dZOfiDKHTQNZdQjOi9bbUd3bX62GKmLZsKSpi8=; b=dj7rom8Q9kkA37dvRVFnG1v6A3sGd+2VXCy0IxlhkC2uIGl6SKEMZmn08vHvOe5h6M I6EeVKuHp+G5fMAHVqUjrf55F6oQJY0W6EPQSPg94BwTEAERybMbV5S5ZKwd5QjspcO1 W6YA+rp6qefcjLJhknJdkV4ArdN95r5T2r/44N7aERrqInX5EfMQzbDABqJhFNzMNM/G 7x6dQDDMRtJshyPRDSnzk06oRXRySjNdR5pENO1zsHc0zl2j7CI1F/fFWkzap2JURhxs aeYUX2fI5MNtGQWGrCS7r6HG4rdPAXGL/fXlRSLBkAZXalBAWkC0mKsZsW0zSPcIXUMQ clEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Hh50EXmR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a056402038700b00437dd5e50dasi738648edv.433.2022.06.29.01.46.20; Wed, 29 Jun 2022 01:46:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Hh50EXmR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231706AbiF2IX7 (ORCPT + 99 others); Wed, 29 Jun 2022 04:23:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231801AbiF2IX6 (ORCPT ); Wed, 29 Jun 2022 04:23:58 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 265E130F57; Wed, 29 Jun 2022 01:23:58 -0700 (PDT) Received: from [192.168.2.145] (109-252-118-164.nat.spd-mgts.ru [109.252.118.164]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2C51C66018F6; Wed, 29 Jun 2022 09:23:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656491036; bh=TKplUYktuy+fI9Fnwv5CbrVDB+CILHnu464IQXTpgjg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Hh50EXmRXalD8uakgN300BfHpmjducw9bC+QVgu+5qZJ+/06XJI6vmnwyVunKHvTu UurO0sBxI/nVuIlAr3VXYn58dM1imSvobu55OFj091KfdlQDYptmB3FkuxkWooYgI5 NpSItA+GHgY6jPnWQbmqoBN/FD6L4QqvRvJdrRvwozQKplNFqn5bxByj5x7N8ZzztY 1NGWfuHPh2QKNtJVxBm0HGaBnWhbCFAyCwSOa/+Zp73xpzBmDZHRMCEIF/ZeONMbYT XUq5kP9/+4sLtdAJWqQ7HViJKJJxcDwBrTJthLmqG4Pw4WwunvIZwT0lC3xjDWQAmJ 8GjaWihLHjnhA== Message-ID: <51d58fff-238e-33e9-20d0-0836b1197459@collabora.com> Date: Wed, 29 Jun 2022 11:23:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v6 01/22] drm/gem: Properly annotate WW context on drm_gem_lock_reservations() error Content-Language: en-US To: =?UTF-8?Q?Thomas_Hellstr=c3=b6m_=28Intel=29?= , David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Daniel Almeida , Gert Wollny , Gustavo Padovan , Daniel Stone , Tomeu Vizoso , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Steven Price , Alyssa Rosenzweig , Rob Clark , Emil Velikov , Robin Murphy , Qiang Yu , Sumit Semwal , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , Thierry Reding , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , Alex Deucher , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linaro-mm-sig@lists.linaro.org, amd-gfx@lists.freedesktop.org, linux-tegra@vger.kernel.org, Dmitry Osipenko , kernel@collabora.com, linux-media@vger.kernel.org References: <20220526235040.678984-1-dmitry.osipenko@collabora.com> <20220526235040.678984-2-dmitry.osipenko@collabora.com> From: Dmitry Osipenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 6/28/22 23:12, Thomas Hellström (Intel) wrote: > Hi, > > On 5/27/22 01:50, Dmitry Osipenko wrote: >> Use ww_acquire_fini() in the error code paths. Otherwise lockdep >> thinks that lock is held when lock's memory is freed after the >> drm_gem_lock_reservations() error. The WW needs to be annotated >> as "freed" > > s /WW/ww_acquire_context/ ? > s /"freed"/"released"/ ? > > >> , which fixes the noisy "WARNING: held lock freed!" splat >> of VirtIO-GPU driver with CONFIG_DEBUG_MUTEXES=y and enabled lockdep. >> >> Cc: stable@vger.kernel.org > > Can you dig up the commit in error and add a Fixes: Tag? > > Using that and "dim fixes" will also make the Cc: stable tag a bit more > verbose. > > With that fixed, > > Reviewed-by: Thomas Hellström I'll update this patch, thank you for taking a look. -- Best regards, Dmitry