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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8FCB2C05027 for ; Wed, 8 Feb 2023 19:08:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A93BE85F0A; Wed, 8 Feb 2023 20:08:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="O+06JF6E"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1FF4585D2F; Wed, 8 Feb 2023 20:08:22 +0100 (CET) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3187E85F2D for ; Wed, 8 Feb 2023 20:08:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82c.google.com with SMTP id w3so22057878qts.7 for ; Wed, 08 Feb 2023 11:08:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GqCghu2UeUlnXfLI+E8MmZY9BCrwmGlwIC722qFRoPE=; b=O+06JF6EGidf47L64LHTsEA5e3EnVvsUqQOTdwyUD7MZ5OmUcpTlSeYUphViUkimGl lj36wHCQTIp9BXktha6s1Ey6Ugc2th1IRQPieoa6WobkjQu8TKPGOtNqj6GQM7NsRXVG tW0jFi2kW0dPh1Ibq5fMI5ceb31pSyErQcby8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GqCghu2UeUlnXfLI+E8MmZY9BCrwmGlwIC722qFRoPE=; b=Fk51A66JRwPtYyr3FfXTHWxayW6mUN9o9qbXpvD3QvoyEEjREHXNeC5GDdUSdRmfe1 3DqsDAj82WMvO/7hBDW/Emw6Ai1Mx2OFXU4wi5XgquKVW2FP8OyC3Ifk15TkGdqEE3Pn jCYd7v4vcBOi46BZlviSr/hcyuV4ltWGPPD24x2rpneCZsH396fOMG1JPluDewpEutR5 X21seruZHTO5Cq2RKQpOWIge1GTawV0LUuoYaPKeLJMKOmF7WlTgDe1lcnUW3VOXFt9P C+n+GWNuHXjYpSRwo/Q2fdkXerNNXDU0eOiKZoxy8RWoFNYjW4qOLp7L7puOswANe6IT 9iEQ== X-Gm-Message-State: AO0yUKVU0YW/XLYhHoLmL2ySmjV9iKaR+/rFYytQaEAvCqU8+NmklspP JydbINjvwxkNoBQNh7E4VMypHA== X-Google-Smtp-Source: AK7set/4qcrYCmXbrAKpA8OfVRxGENz+VAUVYcVl1BpmRcNc3AQSZ+ANnnvzhqVluYgU20IKqCuRUA== X-Received: by 2002:ac8:5b89:0:b0:3b9:c0e8:610c with SMTP id a9-20020ac85b89000000b003b9c0e8610cmr14926905qta.60.1675883297963; Wed, 08 Feb 2023 11:08:17 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-90cc-7e59-435b-3104.res6.spectrum.com. [2603:6081:7b00:6400:90cc:7e59:435b:3104]) by smtp.gmail.com with ESMTPSA id b13-20020ac844cd000000b003ba1ccba523sm8342663qto.93.2023.02.08.11.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 11:08:17 -0800 (PST) Date: Wed, 8 Feb 2023 14:08:15 -0500 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List Subject: Re: [PATCH] test: lmb: Rework lib_test_lmb_max_regions test to scale Message-ID: References: <20230208183918.3768060-1-trini@konsulko.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="60+QKnZKUsHUIIFc" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --60+QKnZKUsHUIIFc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 08, 2023 at 12:07:00PM -0700, Simon Glass wrote: > On Wed, 8 Feb 2023 at 11:39, Tom Rini wrote: > > > > First, this test depends on CONFIG_LMB_USE_MAX_REGIONS, so add that as a > > test before building. Second, instead of using a hard-coded value of 8, > > which is the default of CONFIG_LMB_USE_MAX_REGIONS previously, use that > > directly and update the comments. The only trick here is that one part > > of the test itself also was written with the value of 8 itself in mind. > > Rework the size of the lmb region we allocate to scale with the value of > > CONFIG_LMB_USE_MAX_REGIONS. > > > > Cc: Simon Glass > > Signed-off-by: Tom Rini > > --- > > test/lib/lmb.c | 44 ++++++++++++++++++++++++++------------------ > > 1 file changed, 26 insertions(+), 18 deletions(-) >=20 > Reviewed-by: Simon Glass >=20 > nit below >=20 > > > > diff --git a/test/lib/lmb.c b/test/lib/lmb.c > > index 157c26394d6f..b24c85d203ae 100644 > > --- a/test/lib/lmb.c > > +++ b/test/lib/lmb.c > > @@ -665,10 +665,17 @@ static int lib_test_lmb_get_free_size(struct > unit_test_state *uts) > > DM_TEST(lib_test_lmb_get_free_size, > > UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); > > > > +#ifdef CONFIG_LMB_USE_MAX_REGIONS > > static int lib_test_lmb_max_regions(struct unit_test_state *uts) > > { > > const phys_addr_t ram =3D 0x00000000; > > - const phys_size_t ram_size =3D 0x8000000; > > + /* > > + * All of 32bit memory space will be contain regionns for this > test, so >=20 > regions >=20 > Should the word 'be' be there? My re-re-word was wrong, I'll adjust it, read it aloud and repeat until it's right before pushing, thanks! --=20 Tom --60+QKnZKUsHUIIFc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPj8xYACgkQFHw5/5Y0 tywSCgv+Mx8BEuz8BwDRek8mkJEDbTaU0PShrjcLMb/tDbjCWkWI+hrESkdRiiBu RhnmNHg56SQIAx2u8H8bc1Pt3LXUyE99yk3tXGMvdwOja2H6WwKwtqn9O2K/Nnn5 czvBlXH1Kqc1wVxMjSEarrDWgtD6x0IIb5smkIbOVrUagpF5kVHev3ZqV2jUbrWD kzOnsBQm3jlXDgzQ8JnAmN97J6O6GZ7IRVBCt6/0YKj9P+LGS2o9qvFJeXMWwjMC giZVSpQg52askUSfJ+iME1NwvzJ4BqHDxj/93YreLSfrQq643Sfcs0KSdHS+kQoM Iz5eA/S9QzFgZ984KouZxzEEZup2hDWWBiBlB0d3amjxvZUmxaAchOyCpd9qfnWS JxGOsyKsH8c7BXo09X4a3vk1R8kjzeLusHXkpBAlsEHN/Jd8dNH7d3iy3Dof1b46 TpJGvJLu3MySPjhnz+r/kl1PHjBcZLlkAf6HkAbBf6LCrLcZU2WVUrsEY9uRIaql Dbq7SCZD =LqX1 -----END PGP SIGNATURE----- --60+QKnZKUsHUIIFc--