From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63948606A322 for ; Sat, 5 Dec 2026 15:30:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cN9601nK Received: by kanga.kvack.org (Postfix) id 7FA136B05B4; Sat, 5 Dec 2026 10:30:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A97B6B05B5; Sat, 5 Dec 2026 10:30:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6BFDC6B05B6; Sat, 5 Dec 2026 10:30:43 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4FDE56B05B4 for ; Sat, 5 Dec 2026 10:30:43 -0500 (EST) Received: from smtpin06.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay08.hostedemail.com (Postfix) with ESMTP id CCBBD140589 for ; Sat, 5 Dec 2026 15:30:42 +0000 (UTC) X-FDA: 85510316724.06.F7C9C33 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by imf02.hostedemail.com (Postfix) with ESMTP id 28BEC80018 for ; Sat, 5 Dec 2026 15:30:40 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=cN9601nK; spf=pass (imf02.hostedemail.com: domain of sashiko-bot@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=sashiko-bot@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796484641; b=ctGu09ERZTzHoa1raw2WAZvHdFYtRLRNn8BVTKW2ExrCle+R0ahejqvxPC1vaB1g8ZeZX2 aEh0q4whGMn3YHQWt66AtEr/FboIJKmojNtPqe/UPBAq+PpgRIZzOFaDk2XCqxpLGq1A4w LEh3CEnOIUdOiI7PlFc7DBDozelw46Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796484641; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=l2XnU1annf1ssT+d49AcSerPRcWLITuCNL7qq0hzfQ8=; b=J81TXnxgsLG/PZySFpy0dZkmBD7OjKTaN3iFT5JtSHt/Pp9gpkPORTwfVKHwhC2UbKRSXN bKcEe0RV8tATFp3N31PmBVYyr0eCEBltEOt3ru+Sslfzij6tsqhkdq8p6foWAAaZ3EP9KL 0v1uq4KyN6Uoby6ceXebq5DmZighFZY= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=cN9601nK; spf=pass (imf02.hostedemail.com: domain of sashiko-bot@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=sashiko-bot@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 60D13611D9; Sat, 5 Dec 2026 15:30:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A96831F00936; Sat, 5 Dec 2026 15:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796484640; bh=l2XnU1annf1ssT+d49AcSerPRcWLITuCNL7qq0hzfQ8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=cN9601nKAXpAFEW/LGBZMqtSAKMjzDErvKukwuFtgJ1rOYKdz3f/8TVbY/N25qP2P KkoEMebzIdJZpO/6+Kly416uwHg29h4IGNzMiXRlJjcNEPDhZsOBQVMDM3NGM1IY6W Sbm1VettWk3/+tyYrC+5Yd2hbb4D7drajTLpxckiuc5RmADQLUzkL0wrhwVJCVFeXR r8FuO21OsF4oMpJbtHw9FeUVHFHkkQA6UwW2dxwjNw5Fke47XlTmeSVwBCq8giARBs GV+uzEvvMAzp/4FSCy9TDhfh6mDWDJyj01g+B0V8If+pqBb4TjNKSp/x87DTD8+5is Sc8HwMY777DzQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/5] resource, kunit: add test cases for reserve_memblock_reserved_resources() Reply-To: sashiko-reviews@lists.linux.dev To: "Ayubjon Qosimov" , "Andrew Morton" Cc: "Mike Rapoport" , linux-mm@kvack.org, "Catalin Marinas" , "Will Deacon" , "Mark Rutland" , "Paul Walmsley" , "Huacai Chen" , nh-open-source@amazon.com In-Reply-To: <20261204-b4-iomem-ev5-v1-2-ccf26a176cf6@amazon.de> References: <20261204-b4-iomem-ev5-v1-0-ccf26a176cf6@amazon.de> <20261204-b4-iomem-ev5-v1-2-ccf26a176cf6@amazon.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 15:30:39 +0000 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 28BEC80018 X-Stat-Signature: 1wtaht57x4kkho9akfi9mwh679nauikj X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-HE-Tag: 1796484640-306880 X-HE-Meta: U2FsdGVkX19tZuia+WiSrMDL57dP5RvAH/PMBGGJwFyRPW8Qg16WUsvpq/xVagHV72ZAU05o27v3HRrERLvO4O2s1B87Pu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bfYjg9W30UIojiKEs3CK4xXIG+77ej5e39o6/iUVHeErKCZls6gj5s+Tb9+hCwHs+lkPn/igCyScwC8ifCwW+wEh8bGt1KO7iKkpPsbWihTHLl/RcxO8Eud8pAgyP11QPzEw6Dkcy2NWfI6ttiL9vIJ/yyQA2llVINmFqPbDz6m96SOvRj8wbP9Sgw339TqOBGo9fvZ2Bl+DZLsIZFCBMGYpexo9hUQ8+qpw1gVVk5ClPWQS6E0vy+g6HbBtKSpUxILV+ZLF0upjNwwCuO3eH7+MDoIhBNjgZ1fUmYf6cpZ74zWjHG0Nmd6n373hH25MEGbydmx2XSEYN9yQXDC0Kcw/SYk85omeGJHQWlg+2MsJf5Jodu0WBwoNdbrn+ZVmGR2QBHgG386zDHu6dfc1VK3xItCC1a2qUf0qFTsKUet4ige72TvRWwFv/kqlZhk8FDZNLTqW7GrATAZFnyjZCUQGkg1ng4k4pvANQ/Oq/0cd4tpeONn1w9sHifqNKjpbFaH9i4YR2x3SZYwJep4J458lSF5UgIxFEhwe6I0XmZgjZJvcPNWOcd9WkqoVCx/VF3Ear2XWJt7Qsc99IfEWq1679js78cVUwwT0lRQPShxVtc2Cv2XFoBLPd/t+tZvCga3STSQfClcGku18= Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] resource, kunit: unused reference tree a in resource_test_hint_absorbed() -- commit 1fb74f6da0b7f065e68520a5d0823883c99a3f51 Author: Ayubjon Qosimov resource, kunit: add test cases for reserve_memblock_reserved_resources() This commit exposes __reserve_region_with_split() and __reserve_memblock_resources() to KUnit and adds an init-section KUnit test suite in kernel/resource_kunit.c to verify hint-based resource reservation against reserve_region_with_split(). > diff --git a/kernel/resource_kunit.c b/kernel/resource_kunit.c > index 9eeb2b1a85c01..75d7a92a23bb5 100644 > --- a/kernel/resource_kunit.c > +++ b/kernel/resource_kunit.c [ ... ] > +static void __init resource_test_hint_absorbed(struct kunit *test) > +{ > + /* A range that a child covers moves the hint onto that child. */ > + static const struct hint_range root =3D { 0, SZ_64K - 1 }; > + struct resource *a, *b, *pre, *hint =3D NULL; > + > + a =3D hint_alloc_roots(test, &root, 1); > + b =3D hint_alloc_roots(test, &root, 1); > + hint_add_pre(test, a, b, 0x6000, 0x6fff); > + pre =3D b->child; > + > + __reserve_region_with_split(b, 0x5000, 0x5fff, "r", &hint); > + KUNIT_ASSERT_NOT_NULL(test, hint); > + KUNIT_EXPECT_PTR_EQ(test, hint->sibling, pre); > + __reserve_region_with_split(b, 0x6100, 0x61ff, "r", &hint); > + KUNIT_EXPECT_PTR_EQ(test, hint, pre); > + __reserve_region_with_split(b, 0x6200, 0x62ff, "r", &hint); > + KUNIT_EXPECT_PTR_EQ(test, hint, pre); > +} [Severity: Low] Is root a intentionally unused after hint_add_pre()? resource_test_hint_absorbed() allocates and populates a alongside b, consistent with the suite comment that each case builds both trees and checks that they match, but never reserves on a or calls hint_expect_same(test, a, b). Mirroring the three reservations on a with reserve_region_with_split() and calling hint_expect_same(test, a, b) would match the other cases and the suite comment. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-b4-iomem-e= v5-v1-0-ccf26a176cf6@amazon.de?part=3D2