Message ID | 20230224-track_gt-v6-5-0dc8601fd02f@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp230468vqo; Wed, 29 Mar 2023 00:40:01 -0700 (PDT) X-Google-Smtp-Source: AK7set+QNas+Dy0/fKmq01mV+n1J4HXXSGgghGOgqUT7nebwL2Omn+N23iaJ2nldwJ4DmrKFCyzx X-Received: by 2002:a05:6a20:2a18:b0:db:6d41:d628 with SMTP id e24-20020a056a202a1800b000db6d41d628mr15810555pzh.22.1680075601627; Wed, 29 Mar 2023 00:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680075601; cv=none; d=google.com; s=arc-20160816; b=V9pJ2ZsSZRwdZX2JLvDXAhN7cLxjA8DgFSb/G284+L6mdr2mKErezcY4DTSW1vsZtr 9BXPiZ7u6b4YopQD97tF1SLNPZJ3N3CtEhZt1aYbnwKHZjiiNJD6Nwbc2VuIe1JDUitp D4Zl76g8PJ+gbF0PyDvQqOAmzkYBF9SBWQ819VLYUvUaXQXlkVT8FHVB93rCoBtWGYV/ NwEBeLw1BCjqJ9r0BUhF6rBhMLzBn7MdjDLXOvm16vxGKNVRClkotlod/cViy/xNQhgC WHVVEzz5lQcT/13+5hE6E2w+0bHfCNWk4FZDOcEJOIIQHcSJztogJdaPBIRGAt8+dhq4 4oWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=oiVQvH742AxxBrieq3OC450bmEIM81iJhdlH9UX/b0o=; b=wqZ0CeUFIsmsgRSl5QkZdTocP6KGZTb7z8TlXI4A7ZlZsU7kw3DWypM3Vm5OdWccrq /7bnvr5+mQZwoT4mqy/S4IKyKKC2l7wHNZ4FLDCorcUXjX5+oVmDLIuLOtDB7mdqcq+n 6rUFAsxqwT+CHe5zeC/jdpjCvopyfPtTw8EOwXULIc+5oFqbjq3SyLLOr754zrOMfo6U uMB1grC6CmDy7CbShv5ODvH3sFQApaoVL6JpIFIaxUmM/XJ3/2K+CM9Bfsu+TJ6swaE1 3+ds2VnkAuE8qFcz+vhUCcaVko+OCY9lyjzplnmE8vZkRmMT8xFwVllBqSty0peu4v1y O4OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cI1ylPpe; 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=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6388c1000000b0050af2178284si32095629pgd.819.2023.03.29.00.39.48; Wed, 29 Mar 2023 00:40:01 -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=@intel.com header.s=Intel header.b=cI1ylPpe; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbjC2H1L (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Wed, 29 Mar 2023 03:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbjC2H0Y (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 29 Mar 2023 03:26:24 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4852C3C30; Wed, 29 Mar 2023 00:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680074731; x=1711610731; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=LrADJYnQd6OA8VRZxmBcmho+KZF+ugscr5DiCLcs2Nw=; b=cI1ylPpeGux7frQlDRW4Qdljg/ZTLCFIw3UvYAMTdHD3qkIlCliCh3No 8VLrPa+LJ6VJsJfEQHP0VvAgLUggRCw4E2GC4N7UX5BnPBjmlbeJ7UjAt 69LOoA2dP58yPVl1g/szKbwUGnoE7Z2jo1XcKidSftXlu/eNqqYbqQsi6 6P5IO3BLsthuY8NoXT72Ta+YTgwEhjrPCsrn9JE3x/HntQZaB8Ly7RyR0 ZA/3yUYEa+lP7F9ckEppH3RsevJLd90wk/pswLusOfvG9bfzQFa5BV295 Fj39Wl48XP9xcj9fuQVWkixTlGz2VQYxKOgTOKJP4tU/+12cftZTmdfHv w==; X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="368569785" X-IronPort-AV: E=Sophos;i="5.98,300,1673942400"; d="scan'208";a="368569785" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2023 00:24:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="827772913" X-IronPort-AV: E=Sophos;i="5.98,300,1673942400"; d="scan'208";a="827772913" Received: from lab-ah.igk.intel.com ([10.102.138.202]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2023 00:24:48 -0700 From: Andrzej Hajda <andrzej.hajda@intel.com> Date: Wed, 29 Mar 2023 09:24:16 +0200 Subject: [PATCH v6 5/8] drm/i915: Correct type of wakeref variable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230224-track_gt-v6-5-0dc8601fd02f@intel.com> References: <20230224-track_gt-v6-0-0dc8601fd02f@intel.com> In-Reply-To: <20230224-track_gt-v6-0-0dc8601fd02f@intel.com> To: Jani Nikula <jani.nikula@linux.intel.com>, Joonas Lahtinen <joonas.lahtinen@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>, Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Chris Wilson <chris@chris-wilson.co.uk>, netdev@vger.kernel.org, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Dmitry Vyukov <dvyukov@google.com>, "David S. Miller" <davem@davemloft.net>, Andi Shyti <andi.shyti@linux.intel.com>, Andrzej Hajda <andrzej.hajda@intel.com> X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761686954280132093?= X-GMAIL-MSGID: =?utf-8?q?1761686954280132093?= |
Series |
drm/i915: use ref_tracker library for tracking wakerefs
|
|
Commit Message
Andrzej Hajda
March 29, 2023, 7:24 a.m. UTC
Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c index 88e881b100cf0a..74d28a3af2d57b 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c @@ -3248,7 +3248,7 @@ static void destroyed_worker_func(struct work_struct *w) struct intel_guc *guc = container_of(w, struct intel_guc, submission_state.destroyed_worker); struct intel_gt *gt = guc_to_gt(guc); - int tmp; + intel_wakeref_t tmp; with_intel_gt_pm(gt, tmp) deregister_destroyed_contexts(guc);