From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 483F114EC5E for ; Thu, 13 Jun 2024 19:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718306285; cv=none; b=VNcsPzrs64/Z02n78cHVscLj7wCMK8DF1RdJTZvYg/l/ci6pqEWdhe6iR5XbglbS1qJlZ7qi5mNcebAs5/9nhDDum6sKaKiUgf2mrqD8tfuD+VC2S/11Ofz9JgiUHV4RARKJUuOSU+Pe4Yy8ENKKH2714Fgz5IMfgQVC742+MhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718306285; c=relaxed/simple; bh=ce4Q/NufruI5urXZ7chvDXPvs3yC6pJfyCeEUEbRjjk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JOg8umUfljIz8D9FWS6KIvJP6x0acYU17PgxAykxbvaXmCfgtrm0PhCCCgTV9XGyrbX+XUTjZH+ADrUQ9SvTK0KVozxgJBRZ8UuFNiHfGAE59WgYy2QyShGVxcs99FMQ5OGRvD3nNV4rOEABpfLRDxpu1oSyi6sRgjr9ohjtHN4= 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=w/JZTemT; arc=none smtp.client-ip=209.85.214.169 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="w/JZTemT" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1f717608231so11061235ad.2 for ; Thu, 13 Jun 2024 12:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718306283; x=1718911083; 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=lznOWuT3zuZ+7YZNo94Ic++y7Z2ydYmmMFGw8gZ0Wmk=; b=w/JZTemTCsVzzfSSQW90F/em0dnvxk8R6ksBQaHsAgHtVW9M9LF+b02MOkkRdhEpVI Z8GearT0rh/SIqS+PRTgSuV0c85/xcM1PUeLyBnd55rKxU1xSxZaj9SpIbHsQJvmH58+ DT0LkLOvYp+mqxcuD+Vl5A6SVKdd2GC4PVDf84QIh0KjDelGTb/Lwkb0sQ/XqmrlDgeb unA8eUQ9iLFDlWTvkrmu3gAHDBCSYFdEU3fiUPvw3S95P+3U2vvYpnNp98ztN63dXx42 l8oos9WUytiefc/YPXM1Lc+V4wsPBH3v3bzHeUNwdETi8EhQ6yQDx86jxt/TiYj0bhT6 0m6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718306283; x=1718911083; 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=lznOWuT3zuZ+7YZNo94Ic++y7Z2ydYmmMFGw8gZ0Wmk=; b=ICpKjDf1XFBrarW/M3AbKYF5iH7ywthNBUt0QDISbRRO/bsaCGzYA72coTG4TjvvPA nvxHBK4VZTIpm0batDQPkjuhLwEilx5K2uAITMq+Z5HX9WLl0sL49M0Rulk3QEmtXxgQ +tdCCiIeXUHSvHr6ecvD39QGaFyEI/B5Rd7rUzovU6Xi1CA/6wAKgTOKWCuySaETPm3d rxOnzDKUTQAOdlTVgDhJKsUuQi8dDfkI+GOwvHRhCXI2SjNTLPwIfhzfTM8hcETY5ZXt th8NU11QS0Wno6ro8WBRw/256x9rj0ytmyfoQE4JvhdfSz+RvGUqt0/MivhIs01Qg6vk MLyA== X-Forwarded-Encrypted: i=1; AJvYcCWzbaIMWoPL0o6VgfHFantcdsVyDChI8VB/Bw+AEjeNaiQFyiFmZGkzZ4f8WnMED4n7nxCotRkADu1v9ffcRQ/pqPK7D7x4fyKw X-Gm-Message-State: AOJu0YzUVV1rrd56wxFGhoFAVYiJy72C4Dtzs2aMLz+ENScXj1IObG9Z TPHZSE/lMUr6kmQD5IXY2zZyaYXiS6VQAvdiw8EKM9aXOgGxFelQbIqGoiKNrL8= X-Google-Smtp-Source: AGHT+IH16Z30xWnnVCPD+SWE8CuZmhFACgLpQTZU9/kCBeM9FuPyEaJYp2X2ogoYFLKkXmxabg3ZrQ== X-Received: by 2002:a17:902:f68b:b0:1f7:1706:25ba with SMTP id d9443c01a7336-1f8625cf2b0mr6158425ad.15.1718306283241; Thu, 13 Jun 2024 12:18:03 -0700 (PDT) Received: from jesse-desktop.. (pool-108-26-179-17.bstnma.fios.verizon.net. [108.26.179.17]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855e7ca78sm17471015ad.106.2024.06.13.12.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:18:02 -0700 (PDT) From: Jesse Taube To: linux-riscv@lists.infradead.org Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Evan Green , Andrew Jones , Jesse Taube , Charlie Jenkins , Xiao Wang , Andy Chiu , Eric Biggers , Greentime Hu , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Heiko Stuebner , Costa Shulyupin , Andrew Morton , Baoquan He , Anup Patel , Zong Li , Sami Tolvanen , Ben Dooks , Alexandre Ghiti , "Gustavo A. R. Silva" , Erick Archer , Joel Granados , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 6/6] RISC-V: hwprobe: Document unaligned vector perf key Date: Thu, 13 Jun 2024 15:16:15 -0400 Message-ID: <20240613191616.2101821-7-jesse@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240613191616.2101821-1-jesse@rivosinc.com> References: <20240613191616.2101821-1-jesse@rivosinc.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document key for reporting the speed of unaligned vector accesses. The descriptions are the same as the scalar equivalent values. Signed-off-by: Jesse Taube --- V1 -> V2: - New patch --- Documentation/arch/riscv/hwprobe.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/riscv/hwprobe.rst index 7085a694b801..344bea1e21bd 100644 --- a/Documentation/arch/riscv/hwprobe.rst +++ b/Documentation/arch/riscv/hwprobe.rst @@ -236,3 +236,19 @@ The following keys are defined: * :c:macro:`RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE`: An unsigned int which represents the size of the Zicboz block in bytes. + +* :c:macro:`RISCV_HWPROBE_KEY_VEC_MISALIGNED_PERF`: An enum value describing the + performance of misaligned vector accesses on the selected set of processors. + + * :c:macro:`RISCV_HWPROBE_VEC_MISALIGNED_UNKNOWN`: The performance of misaligned + accesses is unknown. + + * :c:macro:`RISCV_HWPROBE_VEC_MISALIGNED_SLOW`: Misaligned accesses are slower + than equivalent byte accesses. Misaligned accesses may be supported + directly in hardware, or trapped and emulated by software. + + * :c:macro:`RISCV_HWPROBE_VEC_MISALIGNED_FAST`: Misaligned accesses are faster + than equivalent byte accesses. + + * :c:macro:`RISCV_HWPROBE_VEC_MISALIGNED_UNSUPPORTED`: Misaligned accesses are + not supported at all and will generate a misaligned address fault. -- 2.43.0