From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD17B1442E8 for ; Tue, 27 Aug 2024 23:33:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724801591; cv=none; b=f5fnWToBf74Z3y0HbyaFODmMciDGi3k8hHjghvIDrgbWfSHfhRmL8pXEQD7zICP1AT/WJXRj6hsQ0TamNweA15BexAGFOdU0kVZXagXcxqaISJzR0Ob5dMZq3mzqxMgjwgvCXrKRENm/RNv1htv8gFlPA+DfgJ0HHgOUADHKZN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724801591; c=relaxed/simple; bh=03+uADeUFkqkQ2H5vsG/1QQZOXbuSTzM2aXQOoVmRt4=; h=Date:To:From:Subject:Message-Id; b=lNJoWKNq6hNWhhetGd8NOevkQzZb+vxwh837ge15m1+9Y2a8VQaD5kHGM53512aJk25xuKlr1EkTI85j/1wYZeMGZL8NZQSPvJQCThAoXHgOAyosa6Q44hWrmVeVnZfRW4C5ASSm+EQiK9gNY4vfOpw+el7gZxWX/N3hAwdX+FE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=IKCFwVt6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="IKCFwVt6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2442BC4FF76; Tue, 27 Aug 2024 23:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1724801591; bh=03+uADeUFkqkQ2H5vsG/1QQZOXbuSTzM2aXQOoVmRt4=; h=Date:To:From:Subject:From; b=IKCFwVt6n/7Om9RED7f5eDklDJSGp5WtnatMDK213l94ISV4sfddiZvxb+FTxsn0T ZlKtyrlqF0iChFSoy+Iz2sNFv5x7ZwlLflYuzuzxDwjCY+c/rpczbkLsmux6IZ+fOa qtj3DpkOXoyAlmimAGOK8fMC1g9W5cRN/i1yJU+o= Date: Tue, 27 Aug 2024 16:33:10 -0700 To: mm-commits@vger.kernel.org,davidgow@google.com,brendanhiggins@google.com,sj@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: + mm-damon-dbgfs-test-skip-dbgfs_set_init_regions-test-if-paddr-is-not-registered.patch added to mm-unstable branch Message-Id: <20240827233311.2442BC4FF76@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: mm/damon/dbgfs-test: skip dbgfs_set_init_regions() test if PADDR is not registered has been added to the -mm mm-unstable branch. Its filename is mm-damon-dbgfs-test-skip-dbgfs_set_init_regions-test-if-paddr-is-not-registered.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-damon-dbgfs-test-skip-dbgfs_set_init_regions-test-if-paddr-is-not-registered.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: SeongJae Park Subject: mm/damon/dbgfs-test: skip dbgfs_set_init_regions() test if PADDR is not registered Date: Mon, 26 Aug 2024 20:03:34 -0700 The test depends on registration of DAMON_OPS_PADDR. It would be registered only when CONFIG_DAMON_PADDR is set. DAMON core kunit tests do fake ops registration for such case. However, the functions for such fake ops registration is not available to DAMON debugfs interface. Just skip the test in the case. Link: https://lkml.kernel.org/r/20240827030336.7930-8-sj@kernel.org Fixes: 999b9467974f ("mm/damon/dbgfs-test: fix is_target_id() change") Signed-off-by: SeongJae Park Cc: Brendan Higgins Cc: David Gow Signed-off-by: Andrew Morton --- mm/damon/dbgfs-test.h | 5 +++++ 1 file changed, 5 insertions(+) --- a/mm/damon/dbgfs-test.h~mm-damon-dbgfs-test-skip-dbgfs_set_init_regions-test-if-paddr-is-not-registered +++ a/mm/damon/dbgfs-test.h @@ -116,6 +116,11 @@ static void damon_dbgfs_test_set_init_re int i, rc; char buf[256]; + if (!damon_is_registered_ops(DAMON_OPS_PADDR)) { + damon_destroy_ctx(ctx); + kunit_skip(test, "PADDR not registered"); + } + damon_select_ops(ctx, DAMON_OPS_PADDR); dbgfs_set_targets(ctx, 3, NULL); _ Patches currently in -mm which might be from sj@kernel.org are selftests-damon-add-access_memory_even-to-gitignore.patch selftests-damon-cleanup-__pycache__-with-make-clean.patch selftests-damon-add-execute-permissions-to-test-scripts.patch mm-damon-core-test-test-only-vaddr-case-on-ops-registration-test.patch mm-damon-core-test-fix-damon_test_ops_registration-for-damon_vaddr-unset-case.patch mm-damon-dbgfs-test-skip-dbgfs_set_targets-test-if-paddr-is-not-registered.patch mm-damon-dbgfs-test-skip-dbgfs_set_init_regions-test-if-paddr-is-not-registered.patch mm-damon-move-kunit-tests-to-tests-subdirectory-with-_kunit-suffix.patch mm-damon-tests-add-kunitconfig-file-for-damon-kunit-tests.patch