From patchwork Fri Mar 14 02:12:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 14016159 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 A89A4C35FF3 for ; Fri, 14 Mar 2025 02:12:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E74810E260; Fri, 14 Mar 2025 02:12:46 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZkfcVL2j"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3AEF110E259 for ; Fri, 14 Mar 2025 02:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741918364; x=1773454364; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lCfluYjvRIY0yj5Rd/gWPaCoQG3GcUZbD8xDyAi5Upo=; b=ZkfcVL2jDa2nedpWTFoQMiggf75RDNpbAtxfm3NbvuKlnEjcUVmP5Bod gjnoUDV58lPp8LFaCZfe3uBzrxLnUkWUXjdARjYGeTCEcPrw7GUBMyIjJ MKN7rkM8cOxckIE10JxX35lx1PhkdNyR7HvyB4WK5/tg3UdjW2IIZYkKs CgY6sBCWnez0VzuIG9KfeyxvkQ4qmsfdUJnHNiBSsZsajJNq/XH0SDfM9 zccF+ApCB/hrilGFKcFuz3uPtfdO2Sr9vv55Bw5MrHZ7PDDlYtEb646NR 2YTWZlxiDYJsTu2n+5GCHCREkVvdiOMofdrBjlRh55fHkqP0oEZQ+VxDf Q==; X-CSE-ConnectionGUID: zB1s7mK3QQqR26a1HOO/Og== X-CSE-MsgGUID: Um43c4ATSnWYZPcuQTrEQA== X-IronPort-AV: E=McAfee;i="6700,10204,11372"; a="65520023" X-IronPort-AV: E=Sophos;i="6.14,246,1736841600"; d="scan'208";a="65520023" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2025 19:12:43 -0700 X-CSE-ConnectionGUID: L58MzXfdTPyelC7dqAK3eQ== X-CSE-MsgGUID: l2ysjwwSScCsyJUeGooZqw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,246,1736841600"; d="scan'208";a="126009266" Received: from bergbenj-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.159]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2025 19:12:38 -0700 From: Andi Shyti To: intel-gfx Cc: Andi Shyti , Andi Shyti Subject: [PATCH 1/4] drm/i915/gt: Fix typos in comments Date: Fri, 14 Mar 2025 03:12:21 +0100 Message-ID: <20250314021225.11813-2-andi.shyti@linux.intel.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250314021225.11813-1-andi.shyti@linux.intel.com> References: <20250314021225.11813-1-andi.shyti@linux.intel.com> MIME-Version: 1.0 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" upto -> up to acknowledgement -> acknowledgment Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_migrate.c | 2 +- drivers/gpu/drm/i915/gt/intel_reset.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_migrate.c b/drivers/gpu/drm/i915/gt/intel_migrate.c index aff5aca591e6..86927e0c76e2 100644 --- a/drivers/gpu/drm/i915/gt/intel_migrate.c +++ b/drivers/gpu/drm/i915/gt/intel_migrate.c @@ -643,7 +643,7 @@ calculate_chunk_sz(struct drm_i915_private *i915, bool src_is_lmem, { if (ccs_bytes_to_cpy && !src_is_lmem) /* - * When CHUNK_SZ is passed all the pages upto CHUNK_SZ + * When CHUNK_SZ is passed all the pages up to CHUNK_SZ * will be taken for the blt. in Flat-ccs supported * platform Smem obj will have more pages than required * for main memory hence limit it to the required size diff --git a/drivers/gpu/drm/i915/gt/intel_reset.c b/drivers/gpu/drm/i915/gt/intel_reset.c index dbdcfe130ad4..82e8df40f5b1 100644 --- a/drivers/gpu/drm/i915/gt/intel_reset.c +++ b/drivers/gpu/drm/i915/gt/intel_reset.c @@ -162,7 +162,7 @@ static int i915_do_reset(struct intel_gt *gt, struct pci_dev *pdev = to_pci_dev(gt->i915->drm.dev); int err; - /* Assert reset for at least 50 usec, and wait for acknowledgement. */ + /* Assert reset for at least 50 usec, and wait for acknowledgment */ pci_write_config_byte(pdev, I915_GDRST, GRDOM_RESET_ENABLE); udelay(50); err = _wait_for_atomic(i915_in_reset(pdev), 50000, 0); From patchwork Fri Mar 14 02:12:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 14016158 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 BEEC5C28B28 for ; Fri, 14 Mar 2025 02:12:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C2ED10E259; Fri, 14 Mar 2025 02:12:45 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="NKn1JqbO"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47F3210E260 for ; Fri, 14 Mar 2025 02:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741918364; x=1773454364; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/lqT8gLl7+CpgxfEKD5YRVqzd/RhDdqJOfK0eGBYtQ0=; b=NKn1JqbOkWp4t/KX5dGyBXcAwYHpX0NOOJnoVOmjQtw7YUbIFd8nLW2s 7BDr/rbc17uwaFaevPpTJLlNWezWnpEIGfycY9GrynwSgK0TLaHGPMQ+C ZE6McZcPYSP23LKyEX99MdHmOacT4HPHth3bqTZJY2NORe/6U+WrcjoWJ 6V1TPaMVWjstDFAuAJgoIqhm0QVtwCQHWelNaIysL/efxRWriuusXscjh 6518pNjAht4VwAOJFZzMztzbAp5wzb8ajjumms/f7E/ZPDMtjiRN8iHoG RMfAcVgrxjcnO6hZh/P2znWMrUBDo0LKQPqXnwNl49hjpDR2MHCEQY+ej Q==; X-CSE-ConnectionGUID: Ob8Xb1CRQwKqzwGWx7f4yg== X-CSE-MsgGUID: 0Rq+v0WiThW7RSv80FONVA== X-IronPort-AV: E=McAfee;i="6700,10204,11372"; a="65520027" X-IronPort-AV: E=Sophos;i="6.14,246,1736841600"; d="scan'208";a="65520027" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2025 19:12:44 -0700 X-CSE-ConnectionGUID: 0ZlfkpRTQA6nVm88ilPKGA== X-CSE-MsgGUID: jzP1C8SWTv+48l62ZKhImA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,246,1736841600"; d="scan'208";a="126009277" Received: from bergbenj-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.159]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2025 19:12:42 -0700 From: Andi Shyti To: intel-gfx Cc: Andi Shyti , Andi Shyti Subject: [PATCH 2/4] drm/i915/gt: Fix SPDX license format Date: Fri, 14 Mar 2025 03:12:22 +0100 Message-ID: <20250314021225.11813-3-andi.shyti@linux.intel.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250314021225.11813-1-andi.shyti@linux.intel.com> References: <20250314021225.11813-1-andi.shyti@linux.intel.com> MIME-Version: 1.0 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Header files need to declare the SPDX under /* ... */ style comments at the beginning of the file. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_wopcm.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_wopcm.h b/drivers/gpu/drm/i915/gt/intel_wopcm.h index 17d6aa86008a..d2038b6de5e7 100644 --- a/drivers/gpu/drm/i915/gt/intel_wopcm.h +++ b/drivers/gpu/drm/i915/gt/intel_wopcm.h @@ -1,6 +1,5 @@ +/* SPDX-License-Identifier: MIT */ /* - * SPDX-License-Identifier: MIT - * * Copyright © 2017-2018 Intel Corporation */ From patchwork Fri Mar 14 02:12:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 14016160 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 1253FC282DE for ; Fri, 14 Mar 2025 02:12:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99D3010E279; Fri, 14 Mar 2025 02:12:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="WboljFim"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8DEC210E268 for ; Fri, 14 Mar 2025 02:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741918377; x=1773454377; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ky7O6+FyvXiZZ+OB1hnLpEzKIO7WyvCGRm6JG0g1Wdo=; b=WboljFima2LjZI19XJYSNfc7T1YKMqS4LFn9EvglV+2TlUkLvGZvInKz Ov4qpi0HfY11JF4xCAAhbLTakEMCW+LFnDTlQtU9FyL1JS2N7sGhLhAQM 0n4QHzW2ERp0PsL115VzBqr76Ek55H2cZwfnVc0sxmC/B5aNVSVop9oVT itQ6XEKdPid4ByNkZxu20N9rhmZ1G1HI9924aoPxaApiGMAMnGZetCRsD IeDuPAsfmNtYhTN0NqSjsZt63z08K5ww/vqtjem757CPUKu+DUQMLl0Nf xIv9SU8GwexACanavKvxXHi4QU5glAnNEtUz28Ls2KEnVAIcc5BvbonjO A==; X-CSE-ConnectionGUID: eJL5PVlNRsS6vXqN1Geocg== X-CSE-MsgGUID: pZnWRSnRSAqp+WLdfunUMg== X-IronPort-AV: E=McAfee;i="6700,10204,11372"; a="65520036" X-IronPort-AV: E=Sophos;i="6.14,246,1736841600"; d="scan'208";a="65520036" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2025 19:12:49 -0700 X-CSE-ConnectionGUID: BwFkdLK8QHaj4uqfob0MwQ== X-CSE-MsgGUID: wIUL7dVMSuOHRY58PhacCQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,246,1736841600"; d="scan'208";a="126009286" Received: from bergbenj-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.159]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2025 19:12:47 -0700 From: Andi Shyti To: intel-gfx Cc: Andi Shyti , Andi Shyti Subject: [PATCH 3/4] drm/i915/gt: Remove trailing blank lines Date: Fri, 14 Mar 2025 03:12:23 +0100 Message-ID: <20250314021225.11813-4-andi.shyti@linux.intel.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250314021225.11813-1-andi.shyti@linux.intel.com> References: <20250314021225.11813-1-andi.shyti@linux.intel.com> MIME-Version: 1.0 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Remove useless blank lines before and after the brackets. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_gtt.c | 1 - drivers/gpu/drm/i915/gt/intel_lrc.c | 1 - drivers/gpu/drm/i915/gt/intel_mocs.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_gtt.c b/drivers/gpu/drm/i915/gt/intel_gtt.c index 30b128b1fde7..afbc5c769308 100644 --- a/drivers/gpu/drm/i915/gt/intel_gtt.c +++ b/drivers/gpu/drm/i915/gt/intel_gtt.c @@ -176,7 +176,6 @@ static void clear_vm_list(struct list_head *list) i915_vma_destroy_locked(vma); i915_gem_object_put(obj); } - } } diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c index 51847a846002..c481b56fa67d 100644 --- a/drivers/gpu/drm/i915/gt/intel_lrc.c +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c @@ -751,7 +751,6 @@ static int lrc_ring_indirect_offset(const struct intel_engine_cs *engine) static int lrc_ring_cmd_buf_cctl(const struct intel_engine_cs *engine) { - if (GRAPHICS_VER_FULL(engine->i915) >= IP_VER(12, 55)) /* * Note that the CSFE context has a dummy slot for CMD_BUF_CCTL diff --git a/drivers/gpu/drm/i915/gt/intel_mocs.c b/drivers/gpu/drm/i915/gt/intel_mocs.c index cf41d325712e..5dd8121f4b15 100644 --- a/drivers/gpu/drm/i915/gt/intel_mocs.c +++ b/drivers/gpu/drm/i915/gt/intel_mocs.c @@ -314,7 +314,6 @@ static const struct drm_i915_mocs_entry icl_mocs_table[] = { }; static const struct drm_i915_mocs_entry dg1_mocs_table[] = { - /* UC */ MOCS_ENTRY(1, 0, L3_1_UC), /* WB - L3 */ From patchwork Fri Mar 14 02:12:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 14016161 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 96E53C28B28 for ; Fri, 14 Mar 2025 02:13:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 294BD10E2D5; Fri, 14 Mar 2025 02:13:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="GCt2E8hw"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id F254D10E268 for ; Fri, 14 Mar 2025 02:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741918378; x=1773454378; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JVkg6c/JmVFLzs12mF15ZIrjc9SAYg5qvcmIiyB4f2Q=; b=GCt2E8hwgw7u0pTCogBnpnVHmUJHHYZgXkX7+qIk52RoiqvsyhEr25IV q/UN41VVR7s9gKsgkIY/WUZ5joQDFx4ZfZrj5RuPeDsYdHkVYnCzAfya4 5/Gz+71F/bO3e7VtkkB7W6IohR6vTJrwE2GE2k7WsBl5MMZrMsebYe66m e3CIoH7/eUVZu+BS1djp5y+KPpOsTPNbQffDqXSQcZuGAmbRocUcG8otr kXNiWZdFKwVNYnjawWIAWHu6ssjKTskRwWsVrGe+FBmqxvAoA/aI+3Rrh 0IKJfdOHt2woGJwbPfuycT7li9G5b2hzI4Kk6V4f92ZMuMROZN/gUaRBw A==; X-CSE-ConnectionGUID: pGU/+IyrS0O/VQlAqoh4mw== X-CSE-MsgGUID: 9TOpYCJCRVWt/kWBHEcv9w== X-IronPort-AV: E=McAfee;i="6700,10204,11372"; a="65520046" X-IronPort-AV: E=Sophos;i="6.14,246,1736841600"; d="scan'208";a="65520046" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2025 19:12:54 -0700 X-CSE-ConnectionGUID: o1gVRHTuSpynz5A7lXtjug== X-CSE-MsgGUID: 3nv9ixBJQ86jYVLUTK2TzA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,246,1736841600"; d="scan'208";a="126009303" Received: from bergbenj-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.159]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2025 19:12:53 -0700 From: Andi Shyti To: intel-gfx Cc: Andi Shyti , Andi Shyti Subject: [PATCH 4/4] drm/i915/gt: Use proper sleeping functions for timeouts shorter than 20ms Date: Fri, 14 Mar 2025 03:12:24 +0100 Message-ID: <20250314021225.11813-5-andi.shyti@linux.intel.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250314021225.11813-1-andi.shyti@linux.intel.com> References: <20250314021225.11813-1-andi.shyti@linux.intel.com> MIME-Version: 1.0 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" msleep is very unprecise for timeouts shorter than 20 milliseconds and most probably will sleep longer. Use uslee_range() instead. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/selftest_rc6.c | 3 ++- drivers/gpu/drm/i915/gt/selftest_tlb.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/selftest_rc6.c b/drivers/gpu/drm/i915/gt/selftest_rc6.c index 908483ab0bc8..99de5d85a096 100644 --- a/drivers/gpu/drm/i915/gt/selftest_rc6.c +++ b/drivers/gpu/drm/i915/gt/selftest_rc6.c @@ -60,7 +60,8 @@ int live_rc6_manual(void *arg) /* Force RC6 off for starters */ __intel_rc6_disable(rc6); - msleep(1); /* wakeup is not immediate, takes about 100us on icl */ + /* wakeup is not immediate, takes about 100us on icl */ + usleep_range(1000, 2000); res[0] = rc6_residency(rc6); diff --git a/drivers/gpu/drm/i915/gt/selftest_tlb.c b/drivers/gpu/drm/i915/gt/selftest_tlb.c index 3941f2d6fa47..69ed946a39e5 100644 --- a/drivers/gpu/drm/i915/gt/selftest_tlb.c +++ b/drivers/gpu/drm/i915/gt/selftest_tlb.c @@ -143,7 +143,7 @@ pte_tlbinv(struct intel_context *ce, if (ce->engine->class == OTHER_CLASS) msleep(200); else - msleep(10); + usleep_range(10000, 20000); if (va == vb) { if (!i915_request_completed(rq)) {