Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2493226rdb; Mon, 5 Feb 2024 08:10:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG++YV3wDKVqYBMw+N1692tnjWGXH1cHXmDlgbtZ0cy1pqHc0nkj2hH9wwKhh3lTVZPIGfD X-Received: by 2002:a17:90b:4f8a:b0:296:2a15:5f27 with SMTP id qe10-20020a17090b4f8a00b002962a155f27mr188642pjb.2.1707149455841; Mon, 05 Feb 2024 08:10:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707149455; cv=pass; d=google.com; s=arc-20160816; b=t/mmSmyjAaZWRmQIHxQqXC1I1AERfJMNhKIcuZJSS7sfl9BMysho2IMihQ/G/6uD3m zh8jhpE8Nu6Qf3nByOG+5BE+VvaP8hhAXKIzRn124rJ1scoO/6PWfkp5mJoFj7j8JY/1 llGaF50f2rY8IKkSLIHiF5MdbKW5AnKL+koACFWNctv1yIeLqx5juK90KdNetPstN03g lRpqIwkDN2xGTeoPlqBhxR8swYkigpEPdnZ0S/aDxEIxy7GzK32tW80K3/ZnZV0dVhc/ x8u6WKQNznVx6qxft2j9fAF8+JteJokvgL4NXUaR7xGZH5w96cD1pRiI8WdkKgkqo472 xj8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=+EeZAfwEPyGr3bPcxLVrnaOfNElu/B3c1f9i79s2kVI=; fh=mJDFcxOcoAzRLeBa7JDgkXL/BwVOX27EXrCciBtSQV8=; b=F/QZ2bnyvp/EQGGV8Dr7aUEBchgo47QINtOsEcG7IWcy1l2UHQ9nPLdTbHWWSni+xg 2RoDcN8DhlY+lvaN0uTmoafOJ8y1SvnceLi5CzcqvNVpA66ewP/nKXHC3ZZbZzQ0J7cI KHt1/FCT3uMfczVraaDFh7uvelBCfJcqlza6mPWzCuFBgujc7CTgmfLY7z346/0xQgrw Bu5hHC5HZW4EIwW+BhuUgFOjK/F/TvpEAsIGbAtNeFGCyU9xK1iUctmP5SGdxfC5ljFR U11RkIRFmFPfiWwM8AF6UbcdMWGnM4nM6ss5eFbx6IR6tstUbn4GxLIZMFmzKM5TRFzh 6fYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i1iHZOeh; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-52994-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52994-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUKMplR+o0/mfZTgANmNQ1Pl8Ajw0pHFX/lDG9Zv2yUcSWlsSvW6g+SkgS5nQVPnVa0po6XYS67WmE+uygwF/Wf+jHiIeIA6F5O7MHsiQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n4-20020a17090ac68400b002963ca532e9si4653111pjt.43.2024.02.05.08.10.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:10:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52994-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i1iHZOeh; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-52994-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52994-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8BF0D286BFA for ; Mon, 5 Feb 2024 16:06:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17DAF39856; Mon, 5 Feb 2024 16:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i1iHZOeh" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5345E33CDA; Mon, 5 Feb 2024 16:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707149168; cv=none; b=L/RxKitu8gIu7M/ZbI1aolK2M2TSV9X19WN82nTdMSmeC1wC4Wqzngp93LIaAT7JkN7cSe88KVpaKu6WXiOwu1GfI5W80G0q/+rYZNS8aC5Kk+92dIkxUx/swqHAsH+VdhT7JfFWsvUaJwup36N6qm7m68GSeyPLf8/bKBPkg0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707149168; c=relaxed/simple; bh=F5TdBqpfmRqtEIvYYBWWHquyP7yxsMy/qm/7PwSOixw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pHbnfBo8JFK/pwbuJQkEPgcyXVuSxEsjfw7eSrDoWLem1ReBvr+pzczc+dp8UAS21dzDsiL1kuDiQ1xnl1LLBzJBeBho7auOBAY2cNsEowkbXp6Q9J4a5DKiw/f7KN2fXQh/lXP7sMcjjSY43hRm2gWCP6wQn5nX+kAVy56GID4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=i1iHZOeh; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1d9b2400910so6714415ad.0; Mon, 05 Feb 2024 08:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707149165; x=1707753965; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=+EeZAfwEPyGr3bPcxLVrnaOfNElu/B3c1f9i79s2kVI=; b=i1iHZOehLMz/h5kJppv3HX/ulZHbvJns8HJH+Ra9d3LXbhF4beLH2Dwc6xwZEM3DU/ cj0UN6Fe4V6h5Ex63gxbQTmBJEwgEQD3i+Z5x1pNrgYHnfkGlPR0TedBUmMvG3G41yrw 11xpqYEXavz5tGkpsSHl1Ukd7NO9LjPLQCbQ9Tx/TjU7m1Q5IyYkWZKAbYFWM6/36w9J j7/SiYDmYYYD8CldaBGwZ2zONJfDIz1VPEbBGR3hqK3UTysyggYcQazKxgESUpJNPWPB WREYe75wfRKQnFuqjun0VSXhOIQivuB2s3o3Ywpsy0J9piIaBWODIq/cUmUjXauBglhg Kf5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707149165; x=1707753965; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+EeZAfwEPyGr3bPcxLVrnaOfNElu/B3c1f9i79s2kVI=; b=wYDuGjA7CmWHA/akCOggx7jK/UdO3apbhpQAxan83vm5o/8WFU0K4ajian6lfLVwgh CnWEn/2UGzPMkcUNRfQbo9oYAE4pe6XrCSN0u6qd1rOrBmcvElQ2Jj5/Z5K+t43XVUAb aWmmAoHLff0SGggLdtU6aU2/slxiEyW0tHHJDkb3HWmwpKZKMLY75JkPyqx4X1kWOB38 4bdXZShh30bbxChQ7M7O5Lfd1Qxxa9pXc0kKXyL6XbAtRoVG2G99mdpbhlCLXO12wJ53 eN1mbowSgKlLZk9kaxeX5NL/EOvrYCgfZYcEiqMKHx3QnkDMHHvxt4J/y6XuNdJnBcgs t2hA== X-Gm-Message-State: AOJu0Yw/Hkxk2ZAF1MdHRbqLfOSLE7cY20ftAHTrCVlY8e9Q36yWFyHz ZyrboRmT3JaBxboIhpfAyyJldAFaAGEg7cvw9MDZ77ksvgQPqfqEeHPqJTDj X-Received: by 2002:a17:902:d902:b0:1d9:803a:8b0b with SMTP id c2-20020a170902d90200b001d9803a8b0bmr98496plz.33.1707149165428; Mon, 05 Feb 2024 08:06:05 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXSRz2GVa/571uh5IbM9khs7E3R9b0KYqyBoUMTCLuXJL0kQnioQZvm9oHiViJM7xVy6pdAdyOIRn1bvfKk/7ttyoaueKJUllGa9Jz29CR/E4H8jOS+AOYm158UdYaVLpdM22RFyQQh7bLafw/Vmjsyr6TiKnRnPT/i3KtwuKfOkJ6px7kfjFQcWQRQYGt9cw8sTsC9YN4VfLk6zuTQ9YsjwA304823Pkk9DcD30YsjM0tOBbC7aVHzDmmEN10= Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id ki6-20020a170903068600b001d916995423sm39851plb.99.2024.02.05.08.06.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Feb 2024 08:06:05 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Mon, 5 Feb 2024 08:06:03 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Kunit test failures with cpumask tests on parisc Content-Language: en-US To: Helge Deller , Yury Norov Cc: James.Bottomley@hansenpartnership.com, linux-parisc@vger.kernel.org, Andy Shevchenko , Rasmus Villemoes , linux-kernel@vger.kernel.org References: <929506cf-a1a7-436e-938d-4e5eff0181e4@gmx.de> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN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Ldertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <929506cf-a1a7-436e-938d-4e5eff0181e4@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/5/24 01:28, Helge Deller wrote: > On 2/5/24 07:53, Guenter Roeck wrote: >> when running cpumask Kunit tests on parisc/parisc64 in qemu, >> I get the following errors. >> >>        KTAP version 1 >>        # Subtest: cpumask >>        # module: cpumask_kunit >>        1..6 >>        # test_cpumask_weight: EXPECTATION FAILED at lib/cpumask_kunit.c:68 >>        Expected nr_cpu_ids == cpumask_weight(((const struct cpumask *)&__cpu_possible_mask)), but >>            nr_cpu_ids == 16 (0x10) >>            cpumask_weight(((const struct cpumask *)&__cpu_possible_mask)) == 1 (0x1) >>    cpu_possible_mask contains CPUs 0 >>        not ok 1 test_cpumask_weight >>        # test_cpumask_first: EXPECTATION FAILED at lib/cpumask_kunit.c:79 >>        Expected nr_cpu_ids <= cpumask_first_zero(((const struct cpumask *)&__cpu_possible_mask)), but >>            nr_cpu_ids == 16 (0x10) >>            cpumask_first_zero(((const struct cpumask *)&__cpu_possible_mask)) == 1 (0x1) >>    cpu_possible_mask contains CPUs 0 >>        not ok 2 test_cpumask_first >>        # test_cpumask_last: EXPECTATION FAILED at lib/cpumask_kunit.c:87 >>        Expected nr_cpu_ids - 1 == cpumask_last(((const struct cpumask *)&__cpu_possible_mask)), but >>            nr_cpu_ids - 1 == 15 (0xf) >>            cpumask_last(((const struct cpumask *)&__cpu_possible_mask)) == 0 (0x0) >>    cpu_possible_mask contains CPUs 0 >>        not ok 3 test_cpumask_last >>        # test_cpumask_next: EXPECTATION FAILED at lib/cpumask_kunit.c:94 >>        Expected nr_cpu_ids <= cpumask_next_zero(-1, ((const struct cpumask *)&__cpu_possible_mask)), but >>            nr_cpu_ids == 16 (0x10) >>            cpumask_next_zero(-1, ((const struct cpumask *)&__cpu_possible_mask)) == 1 (0x1) >>    cpu_possible_mask contains CPUs 0 >>        not ok 4 test_cpumask_next >>        ok 5 test_cpumask_iterators >>        ok 6 test_cpumask_iterators_builtin >>    # cpumask: pass:2 fail:4 skip:0 total:6 >>    # Totals: pass:2 fail:4 skip:0 total:6 >>    not ok 5 cpumask >> >> It appears that parisc sets __cpu_possible_mask to the number of online CPUs, >> which is limited in qemu and doesn't match CONFIG_NR_CPUS. Is this a problem >> with the unit test or with the parisc architecture, or does the unit test >> simply not apply for parisc ? > > Thank you for finding and reporting this! > It's a bug (or a misunderstanding) in the parisc kernel. > Reverting commit 0921244f6f4f ("parisc: Only list existing CPUs in cpu_possible_mask") > fixes the KUnit test. > > Furthermore the revert fixes the issue that CPU hot-unplugging doesn't > work and which I just was starting to debug: > https://lore.kernel.org/lkml/Zb0mbHlIud_bqftx@slm.duckdns.org/t/ > Glad to help, and thanks for the update. Guenter