From nobody Mon Feb 9 15:32:50 2026 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 03B8122DFA0 for ; Mon, 10 Mar 2025 15:13:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741619620; cv=none; b=W8Bfsnwm6kkMI/gHV/URZ12SDlwoOKOCynr8gQlbGvdOV7IJEYQnn3/Dl4QWPfA9+cc/yhliJapTA8dGyjzXHnTw4NIoUPWosIifeizVANeJsHEXsTE9kDB2eJ4BZyTfBBnJ3vZR3k+qRGT//QbiBsRycZ4Teu8CLsFnYc2psTM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741619620; c=relaxed/simple; bh=G0bMb29ZpgJV0/CkJZpzg+0z8//qkfB6ATS+lahL2BQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Fk0G/H6WjMyBJAYwhfzgL6THZ4rWkV0YxJzMauUiEA14NHfTkrT5PvB4Cnr+ET8SfKxH5HNt8FMyBMsxrr7EUWnN/TNKFW3bO+3LZRfAzEQlVRJL/LJyou2U4OLQ5lpQzlyn4U8riew2SOvix1/PxuZCbINZeE14JTMUmbSNUbY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=fi99kbZp; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="fi99kbZp" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2235189adaeso72916605ad.0 for ; Mon, 10 Mar 2025 08:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1741619617; x=1742224417; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Radg/O1kYDcS8p0IZNGBH2Vna601zEl7dWErY3x7IKQ=; b=fi99kbZpHioLtGi82zxDgaCnhZ0CNWGyWwVuW/RajEZPlNGRK4ot6wphvsUusWBGFj iTnzUjn2YnQ5AzoepGwOY/BMI1eE/ihbWpPemAhi8g3tK8PCW7/V480KhZmvtAqXyRJW QDxhEoV4nMX8DtZq8+8/O3ErEDtDkKf+IbHy2V8SZ83NGd8tOesgL9o7YVJY+vhZSLq+ YN9exj9JHUDH0I5PKAUQ69yPktuR+CuGVMTL227KLso44YD9git4DYZMdrL1lOPXiiTT hd4Z6y6OKDamDUF3Kdry+2LA16OF9C2/pBXDAW2Mch3d4k4ZkbNNsXLLh2tSkj5Nwn5B S80g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741619617; x=1742224417; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Radg/O1kYDcS8p0IZNGBH2Vna601zEl7dWErY3x7IKQ=; b=gUt1gUZDA8qiJ+wsLWU+nJonzQxoslERo5aOjK9TdcODzQN8jZvg1ej9pvRPVxPU1j M1QWywOYP7BsJnKKZCjEunROJDGFzfURAkXqGFqfPaKD1E1XYQHsPOEbv9r3M6as4Yjd 4Ix41x0KoxXkz2EesCa8827SFdZ3D1IMJZ3FIs580Sw7IxrApuao2xj5L5HwBLczxRxS YdYGBJm+bcNSI3P9av6S3B9hr5D1MmtbPGpTdwHjcGNo+5LkjRzJdKv0wHGtVrKH6yR+ JeEYDHw+2Vz5a8ZUoUjTKpY0sdQEw9OYERrBxDk53+yAVNhn8EU1hjH6LQnCpF9f27xH sGoA== X-Forwarded-Encrypted: i=1; AJvYcCUqSxph+7tJ1SXR7r9l1syk4ZN7Fwm+mrpfTQnAFYtF3YFgU009HKk5f+IuLrGAgQbHMH7Q+pEMetJVSGk=@vger.kernel.org X-Gm-Message-State: AOJu0YykaDkCB12qxxcLUIzwlxRja9cPxTNEdx9qXbvRuSGji78HNOob /Bn8fdaQ17Rd1JSLx/NWE/1Ug3o//a5U4CowYAKeZSFS2uKWpNGW8WaDeDAnDW8= X-Gm-Gg: ASbGnct5my11QboKdmqvXkwaRUyLid0Exc6O9j1J9ByxSLCP5nTiJcJ98bAymC5gwH0 V0WOqejpI7Xb0/WBBOg3pPYe82udns9lzzuHB7ReTZMiPvcr64gk0IId8TPBplcuxIguTZmk0Cl ZxPlT3Tou+16CFAmx2JSU+TBOO63gOv4/KuvT3HRR0bWJgsc5ghKoKjTBJ7xq6lNx6wcAz1UdPz KX8XoBLHKEyMtxIoW5Wluxlaz5kMe8Wv+OI1wgN3ngWVTkdZDtBUim9ZRZlVMHQ7Q9K6hR69yNd 7Eklcn/ZJnzWEtUItXLHYtdWWdflbrsqztACQpRS/PMlGA== X-Google-Smtp-Source: AGHT+IFYtJx1zpZXoyRZ/KHJTP5G1HNeErNj7hP1Uj5JhhNtVjlp1IKO2nyoOwTegiQflbbotJG7Sw== X-Received: by 2002:a17:903:2308:b0:215:58be:334e with SMTP id d9443c01a7336-224628603d2mr147459315ad.10.1741619617154; Mon, 10 Mar 2025 08:13:37 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:e17:9700:16d2:7456:6634:9626]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-224109e99dfsm79230515ad.91.2025.03.10.08.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Mar 2025 08:13:36 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Paul Walmsley , Palmer Dabbelt , Anup Patel , Atish Patra , Shuah Khan , Jonathan Corbet , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Samuel Holland Subject: [PATCH v3 06/17] riscv: misaligned: use correct CONFIG_ ifdef for misaligned_access_speed Date: Mon, 10 Mar 2025 16:12:13 +0100 Message-ID: <20250310151229.2365992-7-cleger@rivosinc.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250310151229.2365992-1-cleger@rivosinc.com> References: <20250310151229.2365992-1-cleger@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable misaligned_access_speed is defined under CONFIG_RISCV_SCALAR_MISALIGNED but was used under CONFIG_RISCV_PROBE_UNALIGNED_ACCESS. Fix that by using the correct config option. Signed-off-by: Cl=C3=A9ment L=C3=A9ger Reviewed-by: Andrew Jones --- arch/riscv/kernel/traps_misaligned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/traps_misaligned.c b/arch/riscv/kernel/traps= _misaligned.c index ffac424faa88..7fe25adf2539 100644 --- a/arch/riscv/kernel/traps_misaligned.c +++ b/arch/riscv/kernel/traps_misaligned.c @@ -362,7 +362,7 @@ static int handle_scalar_misaligned_load(struct pt_regs= *regs) =20 perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, 1, regs, addr); =20 -#ifdef CONFIG_RISCV_PROBE_UNALIGNED_ACCESS +#ifdef CONFIG_RISCV_SCALAR_MISALIGNED *this_cpu_ptr(&misaligned_access_speed) =3D RISCV_HWPROBE_MISALIGNED_SCAL= AR_EMULATED; #endif =20 --=20 2.47.2