Return-Path: Message-ID: <31737669-8504-648c-90d5-8a76d6d1abef@intel.com> Date: Fri, 25 Mar 2022 10:20:16 +0000 MIME-Version: 1.0 Content-Language: en-GB To: Petri Latvala References: <20220324142621.347452-1-matthew.auld@intel.com> <20220324142621.347452-4-matthew.auld@intel.com> From: Matthew Auld In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [igt-dev] [PATCH i-g-t 3/4] tests/gem_lmem_swapping: limit lmem to 4G List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org, =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= , intel-gfx@lists.freedesktop.org, CQ Tang , Nirmoy Das Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On 25/03/2022 10:18, Petri Latvala wrote: > On Thu, Mar 24, 2022 at 02:26:20PM +0000, Matthew Auld wrote: >> From: CQ Tang >> >> On some systems lmem can be as large as 16G, which seems to trigger >> various CI timeouts, and in the best case just takes a long time. For >> the purposes of the test we should be able to limit to 4G, without any >> big loss in coverage. >> >> Signed-off-by: CQ Tang >> Signed-off-by: Matthew Auld >> Cc: Thomas Hellström >> Cc: Nirmoy Das >> --- >> tests/i915/gem_lmem_swapping.c | 9 ++++++++- >> 1 file changed, 8 insertions(+), 1 deletion(-) >> >> diff --git a/tests/i915/gem_lmem_swapping.c b/tests/i915/gem_lmem_swapping.c >> index 995a663f..ad1c989c 100644 >> --- a/tests/i915/gem_lmem_swapping.c >> +++ b/tests/i915/gem_lmem_swapping.c >> @@ -526,7 +526,13 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) >> igt_fixture { >> struct intel_execution_engine2 *e; >> >> - i915 = drm_open_driver(DRIVER_INTEL); >> + igt_i915_driver_unload(); >> + if (igt_i915_driver_load("lmem_size=4096")) { >> + igt_debug("i915 missing lmem_size modparam support\n"); >> + igt_assert_eq(igt_i915_driver_load(NULL), 0); >> + } > > Does the driver load truly fail with an unknown param? Yeah, I have since removed that. From the CI logs it just loads anyway... > >