From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 1B00037F000; Mon, 4 May 2026 09:33:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777887221; cv=none; b=QWtWtcWq7+LM2fExO22BE0x7MR+qEQBp74iewphn8OSGmU5LeR44DlYoTPwZo4JrAr/DyKfIkMUM7lT4lgRLXTdbSsKKk5UM7XR5K5H5QJXAvx9zZIbVuqcCauUK18yXB8MHkMzn+Dd5UN7pf8FwQW1Sx2lnJeyJr9TVQTdqJzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777887221; c=relaxed/simple; bh=/OTOG/yua90Lm6N+XVb5eKq3ag+BtIQRvIkh/Uh7nqY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C5U3wd6ZPCQbv60BNH4sDG8EgkmkqC1ZoSh2+ybzGBaxqGdtGzNxhOxzDNB17Be5MTva5AYaE1GWDtss8Jf6edG1caz4uiLMY9CfGETMcC9nUi4YfW3BqUYRLWygi4I/cAoySfoyzRiVTJAa0e/B7Y3C20GRGctAWRQkszQttrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=19x/oCdJ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=M/Uov3tW; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="19x/oCdJ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="M/Uov3tW" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777887217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dRvGlWmW/ojdtGAUMoSosFz7deYXy8s7phdrC4jCvnM=; b=19x/oCdJuCt3sTu3vTApdQLhjebe/Ydk01U5DhSb0hNZkgEx21FnNsIhZxOGJVCESPAVsl LzmeqpUq0Jonmcm2OK6bLFurYJcZRvp2Zb3fWKq/tQ7MSfWRIa9LD+nzJsmxGiqUfVc7T7 hWa6B/d+4MdRYx7xvQQ1gJpCmIZegN7WvktTAaNeJJWzg1vwJYyEWaBoM3QCehJvhrcG5O XquE6x/y7PPljUh1TVkHsvCuFRLtoXCA/mzNbJUkJs8YoVWAFs17BuyGjNxgL3z160gyxq K8xpIPXKEWoaxzoPb4lJOfD0jpiS3f5PLcBLsf2V89LmCRScbpjbYMAkD96Qfg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777887217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dRvGlWmW/ojdtGAUMoSosFz7deYXy8s7phdrC4jCvnM=; b=M/Uov3tWwMt7wja+O9d7V2NBb3AAHuPbGWW1qRdr/I9g5F06chKUTbdH2eVZUEigPOs/sW 5rX+5REI0NZEUOAw== Date: Mon, 04 May 2026 11:33:22 +0200 Subject: [PATCH v6 06/11] kunit: qemu_configs: loongarch: Enable LSX/LSAX Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260504-kunit-kselftests-v6-6-712d3d526d97@linutronix.de> References: <20260504-kunit-kselftests-v6-0-712d3d526d97@linutronix.de> In-Reply-To: <20260504-kunit-kselftests-v6-0-712d3d526d97@linutronix.de> To: Nathan Chancellor , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Brendan Higgins , Shuah Khan , Jonathan Corbet , Nicolas Schier , Kees Cook , Alexander Viro , Christian Brauner , Jan Kara , Christoph Hellwig , Luis Chamberlain , David Gow , Rae Moar Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, workflows@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Christophe Leroy , Nicolas Schier X-Developer-Signature: v=1; a=ed25519-sha256; t=1777887211; l=938; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=/OTOG/yua90Lm6N+XVb5eKq3ag+BtIQRvIkh/Uh7nqY=; b=BSBfbeny5Sp+nXeipSJPWFZtzmTsbG6naZ2YXu+Z/Sz6yPYCeqEBDHlnUD9xlFYWGXf+e9G0y 2o11zIf8DsGDWXZYcZrsJ54Mn+Gvgit5Ozs+EfUJF5lomDn2OlZ/af8 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The upcoming kunit UAPI framework will run userspace executables as part of kunit. These may use the LSX or LASX instructions. Make sure the kunit kernel can handle these instructions. Signed-off-by: Thomas Weißschuh Reviewed-by: David Gow --- tools/testing/kunit/qemu_configs/loongarch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/kunit/qemu_configs/loongarch.py b/tools/testing/kunit/qemu_configs/loongarch.py index a92422967d1d..1dba755284f1 100644 --- a/tools/testing/kunit/qemu_configs/loongarch.py +++ b/tools/testing/kunit/qemu_configs/loongarch.py @@ -11,6 +11,8 @@ CONFIG_PVPANIC_PCI=y CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_CPU_HAS_LSX=y +CONFIG_CPU_HAS_LASX=y ''', qemu_arch='loongarch64', kernel_path='arch/loongarch/boot/vmlinux.elf', -- 2.53.0