From patchwork Fri May 3 13:01:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13652806 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6411C4345F for ; Fri, 3 May 2024 13:03:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 564206B00C5; Fri, 3 May 2024 09:03:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4ECA56B00C7; Fri, 3 May 2024 09:03:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 371946B00C8; Fri, 3 May 2024 09:03:28 -0400 (EDT) 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 11E4B6B00C5 for ; Fri, 3 May 2024 09:03:28 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id BBCCFA1E86 for ; Fri, 3 May 2024 13:03:27 +0000 (UTC) X-FDA: 82077100854.19.7A4B6B3 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf22.hostedemail.com (Postfix) with ESMTP id 19DF2C0017 for ; Fri, 3 May 2024 13:03:25 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714741406; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d107Nc8e2wWzFjiKX3Az52a6yyKX4riHtX0fSda4/Es=; b=vVcgkY4jDr7uGcPufb2KATVJeQ8LuzU9oXeezgxs3Zg1iuQqlDGdaNhR1/+yeI98W8NM7A ObNAIaO46h1Q5TNdRio+07hVhhhLWNQXtT+B6Lthf/Vf0KTNeNcRaupv6c0SEM+v1RyxS9 N2X0nnScTQM1pgZ/RvNttJonxiWsW7s= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714741406; a=rsa-sha256; cv=none; b=1Lv5rFrQIBPKm0mddEfTQ4syKTy0k0gWUQ5Yp1q1HEzWmDDgKZwc7FSZlHU0z1l3+fziFU uHmv5R8476OY8/Vp+pMicggSKFm+EzpCUhvxYHCIGF6uVEFMri5t69+iWplE5cEIcRYgOs AM8Ni3nYa3Ki2FQbg5bRd5NY2DCEYIo= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 90E15175A; Fri, 3 May 2024 06:03:50 -0700 (PDT) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 052593F73F; Fri, 3 May 2024 06:03:21 -0700 (PDT) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: akpm@linux-foundation.org, aneesh.kumar@kernel.org, aneesh.kumar@linux.ibm.com, bp@alien8.de, broonie@kernel.org, catalin.marinas@arm.com, christophe.leroy@csgroup.eu, dave.hansen@linux.intel.com, hpa@zytor.com, joey.gouly@arm.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, maz@kernel.org, mingo@redhat.com, mpe@ellerman.id.au, naveen.n.rao@linux.ibm.com, npiggin@gmail.com, oliver.upton@linux.dev, shuah@kernel.org, szabolcs.nagy@arm.com, tglx@linutronix.de, will@kernel.org, x86@kernel.org, kvmarm@lists.linux.dev Subject: [PATCH v4 27/29] kselftest/arm64: parse POE_MAGIC in a signal frame Date: Fri, 3 May 2024 14:01:45 +0100 Message-Id: <20240503130147.1154804-28-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240503130147.1154804-1-joey.gouly@arm.com> References: <20240503130147.1154804-1-joey.gouly@arm.com> MIME-Version: 1.0 X-Stat-Signature: ypnud9x55bb5yebrrufhidz8gjxhgjui X-Rspam-User: X-Rspamd-Queue-Id: 19DF2C0017 X-Rspamd-Server: rspam05 X-HE-Tag: 1714741405-19978 X-HE-Meta: U2FsdGVkX1+JKY9I182YoRnkq0UKlZXp3FOSAUt0LWLuErn3MPFjRo/9YyUEl0ng4LZvmXP/9SMda8elDHD6z7FKATEL3UYJFrQGxycwbdPkb84Y4P9GYU0iKwMv0tQdoFYmvBAfAGEDRIbG71apCtu7zW30uILsT6StICsv0hRhqQ+jYll8qEIWOb03jHJz38vCNP775PeMKMNvFkPJEp+8AQoFq50k6Qq5KGpRhEUtLQ8f8Tc2bK65932sFS1fX9FQt3go/SzJdHa3lbBf75YgMFX8H5S7BocXcaPZAbhMYo1MxR6q+tWvmI0dAXs675Z9nu3gr7XMTv0+0VA3++yxT3jmse8VV54SUHWgtb22ON0jIEayGGpv66Iff4G33wn7atuWAOUioG7Wu4hjSE8xgDybxW4cbmmUEhbKFF0sk2pCEfHa1DtHzpfmOPm5rsa9qZCAwl2BA7odVq+dM2TA/Er0R0KxP3vjwUJknOmnUv9xmWvleLYoL5dAny4qtDF6Uuz5Nhu6OC9BPpSWjjsozKuzJ/CqWDc0J8qv5Ef55hOB58UExHroIRzEJY/bv2c/llAYz0ALSUgiRsbJPWwsLvLKANQuIjPxDYYeC1tgk9ik9zrQmtKCj95kNjNnO6SyJ0bf5Yo7RMKIOkpyHB4UMXN6QGpDmkwaJPNRrMavucEmCoDxgOtR+KqDTs7OoeZEh+7E2wLuADeUfQoIgq82QRiO6lXmDKd+lWmO/HwXwXgYrxMxhc0dbP0F+zERlSG5PUoea3KYxETTsVMuYIg3l7h+Jve8Awfrlkw00J2bxEOf/rvN6wAtza9zwwnNBvZGj/ESloLpvIlKSHsY8c8sR/+5A3WiwYkY+DnPX1r9V0UIW1s6LkXv72XqNX7hkA0GTzL5P8XtNIrTIrahYtNLGIh+vO612ze2kS219F1foKd7q2RGjhby/qfbzceJr92wEKQyuNE3/zVUb4K nAdMYozv ZiHOFAA7soUP8+35II1UKLZPYmBGJiqQ7sVK8A9BrNtawNFc8A2xrXubC/YfCaQeCHV670sqg04RJN394OR/aGQvOofpfsgILaYFnoQ42gjrGqbV/VRoRcR0o/o07wa76hbTMJCR11HF4fAC7oPz2eaZkC7RvKL3aAqp+ybbJCWHTon79BGN1GVsgF8yekhftCbjM/KXuQhAczFf9myHYf5SQImTblhf18s3ZEmZsxVnCmWErTAWdcn+7QDnxsCMO8/RZ5OgArFmc7ZA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Teach the signal frame parsing about the new POE frame, avoids warning when it is generated. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Brown Cc: Shuah Khan Reviewed-by: Mark Brown --- tools/testing/selftests/arm64/signal/testcases/testcases.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/arm64/signal/testcases/testcases.c b/tools/testing/selftests/arm64/signal/testcases/testcases.c index e4331440fed0..e6daa94fcd2e 100644 --- a/tools/testing/selftests/arm64/signal/testcases/testcases.c +++ b/tools/testing/selftests/arm64/signal/testcases/testcases.c @@ -161,6 +161,10 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err) if (head->size != sizeof(struct esr_context)) *err = "Bad size for esr_context"; break; + case POE_MAGIC: + if (head->size != sizeof(struct poe_context)) + *err = "Bad size for poe_context"; + break; case TPIDR2_MAGIC: if (head->size != sizeof(struct tpidr2_context)) *err = "Bad size for tpidr2_context";