From patchwork Mon Jul 19 18:30:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Ekstrand X-Patchwork-Id: 12386555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EEBA7C07E9B for ; Mon, 19 Jul 2021 18:30:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A5FFB60FDB for ; Mon, 19 Jul 2021 18:30:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5FFB60FDB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jlekstrand.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B86689DB7; Mon, 19 Jul 2021 18:30:53 +0000 (UTC) Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76E5A899B3 for ; Mon, 19 Jul 2021 18:30:52 +0000 (UTC) Received: by mail-pf1-x433.google.com with SMTP id p36so17200014pfw.11 for ; Mon, 19 Jul 2021 11:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jlekstrand-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JSsNAUC6TiFNGPt9xPuG3DB4bHI3IWdAc/24RkOt6HQ=; b=i3catkL5M2NRMQoORFlVDgavzWU9gJZ4uMLoMkwk+3OBCwBdE/h4prGHOfZI8I0h0W OngS/0xL5V0w5t9lIlUp06Y38QCNKIehxdJZ9g8VYzIENd9neeYN6kPkyaS0G/nXJPuZ lK/I08XDb9HH5GHaeUStsa4mnyIYZ3U9P+W6WbNDOU0+iS5qSiGT+03EMJ8T0QFcT4pM e3NRUo5dqPjrrToxfko+ENeL7GAN1RbJb2aPRP4caGKSxof0NP8VrRcwBjQEtc/p4Bmi 4isP/3iDRB06sI3VobDu1Bgda80xvNSBXmudC/EtMy8ucCazx1tAaOc/iCVw99eJ7fk3 FuAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JSsNAUC6TiFNGPt9xPuG3DB4bHI3IWdAc/24RkOt6HQ=; b=kvhuJoYrJrvHRy8xrDEu/By51dWUfY07212+rF3917ZPB4DftMSYS3R7jMNExeZIJ2 f/QPsbKKerFRg96iAtZDeAOzTwwPqaw3W+e8MuoJQydooMkGPNNQa8UmnBdxU18xF11e /Awk2vqIHJRj5XT21btaxagQK6NG7QRfPpFmarifEIkjPI1uYj9setkZK4u5sD1FjAlB rGMjVKRGgX3EllB8HrHw0qQ5iBegvptXHvXvVD6OuH7gGtnsTbMGRiFy3V+pJy4e2IJe 1BlsCVQNTBfhzadN/ZFyyQUjXB/WPcbwyu0SZz05BB7AD8aZdxHVNtIRIguOtKdrCcVT i9nA== X-Gm-Message-State: AOAM531XH9MaUdhnIQcuUb7F9aM0VyJEm2MlIxCxeYZfR9gMjDCY5b+R 4IYxkskovLuJBoV4t2PvI/La1ZJ2PK7ANQ== X-Google-Smtp-Source: ABdhPJzriqZyRKvGrZLDXm7/suRhXqumeYjQ8boMMTVchMs6w/LHutLlrB2Xai8edvv63O33ylZxRw== X-Received: by 2002:a63:4b20:: with SMTP id y32mr26498076pga.382.1626719451665; Mon, 19 Jul 2021 11:30:51 -0700 (PDT) Received: from omlet.com ([134.134.137.83]) by smtp.gmail.com with ESMTPSA id w23sm6961555pfc.60.2021.07.19.11.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 11:30:51 -0700 (PDT) From: Jason Ekstrand To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Mon, 19 Jul 2021 13:30:41 -0500 Message-Id: <20210719183047.2624569-1-jason@jlekstrand.net> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/6] Fix the debugfs splat from mock selftests X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" This patch series fixes a miscellaneous collection of bugs that all add up to all our mock selftests throwing dmesg warnings in CI. As can be seen from "drm/i915: Always call i915_globals_exit() from i915_exit()", it's especially fun since those warnings don't always show up in the selftests but can show up in other random IGTs depending on test execution order. Cc: Daniel Vetter Jason Ekstrand (6): drm/i915: Call i915_globals_exit() after i915_pmu_exit() drm/i915: Call i915_globals_exit() if pci_register_device() fails drm/i915: Always call i915_globals_exit() from i915_exit() drm/ttm: Force re-init if ttm_global_init() fails drm/ttm: Initialize debugfs from ttm_global_init() drm/i915: Make the kmem slab for i915_buddy_block a global drivers/gpu/drm/i915/i915_buddy.c | 44 ++++++++++++++++++++++------- drivers/gpu/drm/i915/i915_buddy.h | 3 +- drivers/gpu/drm/i915/i915_globals.c | 6 ++-- drivers/gpu/drm/i915/i915_pci.c | 33 +++++++++++++++++----- drivers/gpu/drm/ttm/ttm_device.c | 14 +++++++++ drivers/gpu/drm/ttm/ttm_module.c | 4 --- 6 files changed, 80 insertions(+), 24 deletions(-)