Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp455777pxb; Wed, 27 Jan 2021 11:53:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwr8H+HY07An+YLs92Ni0TZTRzFfieAVGOVGlg5pzs9E9d3KcWvexx7lPxcCraFPLomNqtj X-Received: by 2002:a17:906:2f09:: with SMTP id v9mr7826849eji.151.1611777191102; Wed, 27 Jan 2021 11:53:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611777191; cv=none; d=google.com; s=arc-20160816; b=Me0+4DgZ656K4JF/T/7zCZhChexN6pP9JY71VhUg9ang5jFGLvlp1utzdmam+201JD /xYaE3aWLhjhR4d7bL6gxy3Kd0oRYz2AnutGB5Aa+lPJeFzBYpa5NCYBQDSkCV2lCwRD OJQdc9j6HSTBcboNNAZvwMYXuiwzDug+a6zRgqf6AL8NDbgJjwm1+DMzqKehHXqPutwP F5VW/trqVZxqIlV/qa4uxCrJQeTP2RXn/fAybWSL6yVlddgU6UufLAnoZza0NL57RSSl 85TBHjMe0PNqaJvReX45udpLPbO4Ak9wfkbdCDRFeV2ujS+rBKG9mY5joFItjituPCXU GRdg== 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:sender:dkim-signature; bh=LkWc8jdaLg/m0l0bUIXMZoNlWUmtThzXolrQWgPDX9A=; b=0WI2MIaNSeH6PfYCoE0hp4BxKIzApvPuqUQ5onXBKGWJmzejCR3xeImYFWLA6zdTdE Ea73YeA4AbWfnXT5tQKihoAfHLbEGOFoT58/rXKp3fm1kRfMDcvfIpG2VkGnEsDRzmIM 1btYtEABkh3o7UQYKwLWnGof6p6hQO5F9RDNCHAm+NK9SqBwOBj8M4Nm80y2491r24Oc VdhqUYxvxNGXfFCZ4c1K14DoPW2hLg6gIrKnWoLbMXTDK3MbODCzNXjHvlM8/nHgJXot syc3pxE8uQbsf+XqYh7whgB1+YJx69+We/iDmDfgh/WZoufTLG0ekapZWJcSWgBbgZbC oMtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SFgx+1jw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si1488020edu.274.2021.01.27.11.52.46; Wed, 27 Jan 2021 11:53:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SFgx+1jw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235824AbhA0DZs (ORCPT + 99 others); Tue, 26 Jan 2021 22:25:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730908AbhAZU7w (ORCPT ); Tue, 26 Jan 2021 15:59:52 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4BB9C061756 for ; Tue, 26 Jan 2021 12:59:09 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id l9so25023791ejx.3 for ; Tue, 26 Jan 2021 12:59:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LkWc8jdaLg/m0l0bUIXMZoNlWUmtThzXolrQWgPDX9A=; b=SFgx+1jwDHwJl5/pYtVEUsFV+wBy/bBhSy0FXJgKgD+ttppOw8/W/4THhlOgTHHSjW 5LV23rvCou1k0Vl3fhFTbbFDO6sPwRbDQOu73Yfdvo8i4hzlBH2dU8kyAJzcnnyryHDC CxKjBL+GGf/k33tub7BYkHJzDr9CSoVSkePsFaT/rjhT++hqA33QE2CwyKgfHjk2G9Nd cWGLm7Jh/Qs3kbVDKsurij+3rxco0k9O67c7e0f0v3sOf63I452GqmLfROKpbkUn7keW ZntnhN/MSqUTcje+Z2rZ2pGKDovVxUpzFu590X9P06W9Ef/YBFm34vMp0/bN/TBwd9C3 72wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=LkWc8jdaLg/m0l0bUIXMZoNlWUmtThzXolrQWgPDX9A=; b=BnLxhmZlCbZbQcfjZB0APvKoTY41yoAXPj3SDms8tPdA5pP+Z8kbO9RMU62U5NSbft 95jx6ehKTaSyHY6WLq0DOYko77eHzjNpDbkkUcAHReLR67j5FKWKmGDe3YAAd/vs15Ac hOfFLn/Z333iFjThgL+KBlhKGostZXqHp47h0cGa4FKPdqhse2WYDwCCkHcPW2eUqOaR wDBo19HHSVCXYGZ6ZPeJ1D7gMpqfxbsfw6u+d9GyONEAylNLQOWzvDc62VDR6aFYUS/D n5KvRVIkGwg52u77VumBEEUUZ3XwRFCyvvqeErOZacdVpJK09NK34dv4secU4TdRq6y0 2bvQ== X-Gm-Message-State: AOAM532qzWKB+1QpuKQ0atU4945CpWxufMi0JmYlsTLB127306NzdnVO kNPPGCdbPLb/1msPy8YXerw= X-Received: by 2002:a17:906:4451:: with SMTP id i17mr3044930ejp.436.1611694748684; Tue, 26 Jan 2021 12:59:08 -0800 (PST) Received: from stitch.. ([2a01:4262:1ab:c:9ff1:8caf:ad1a:a1f7]) by smtp.gmail.com with ESMTPSA id bd5sm12660434edb.86.2021.01.26.12.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 12:59:08 -0800 (PST) Sender: Emil Renner Berthing From: Emil Renner Berthing To: Chris Wilson , intel-gfx@lists.freedesktop.org Cc: Emil Renner Berthing , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Tvrtko Ursulin , Mika Kuoppala , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/i915/gt: use new tasklet API in execlist selftest Date: Tue, 26 Jan 2021 21:59:02 +0100 Message-Id: <20210126205902.5584-1-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the execlist selftest to use the new tasklet API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- Hi Chris, I seem to have missed some tasklist manipulation in the execlist selftest. Feel free to squash this into my previous patch ("drm/i915/gt: use new tasklet API for execution list") or leave it like this. Whatever is fine by me. /Emil --- drivers/gpu/drm/i915/gt/selftest_execlists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/selftest_execlists.c b/drivers/gpu/drm/i915/gt/selftest_execlists.c index 264b5ebdb021..ba55cd018f5b 100644 --- a/drivers/gpu/drm/i915/gt/selftest_execlists.c +++ b/drivers/gpu/drm/i915/gt/selftest_execlists.c @@ -609,7 +609,7 @@ static int live_hold_reset(void *arg) } tasklet_disable(&engine->execlists.tasklet); - engine->execlists.tasklet.func(engine->execlists.tasklet.data); + engine->execlists.tasklet.callback(&engine->execlists.tasklet); GEM_BUG_ON(execlists_active(&engine->execlists) != rq); i915_request_get(rq); @@ -4610,7 +4610,7 @@ static int reset_virtual_engine(struct intel_gt *gt, } tasklet_disable(&engine->execlists.tasklet); - engine->execlists.tasklet.func(engine->execlists.tasklet.data); + engine->execlists.tasklet.callback(&engine->execlists.tasklet); GEM_BUG_ON(execlists_active(&engine->execlists) != rq); /* Fake a preemption event; failed of course */ -- 2.30.0