Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp369356lqs; Thu, 13 Jun 2024 12:22:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzW5LbJz1TP9anW/ad4D9+P/sAbsQeChSWvad3+lWsm2I73vH90CdTdV2Glr+dkCaxsDO1029JxeBca6foMh9HzmirdWIQyU7cr5AklA== X-Google-Smtp-Source: AGHT+IEBZHVDnMgC+2psUPqDCC0rCmjQjcV+SiCCJzyh+gSVfZYpbxdLaPIXbTXvVpLR1BGSdcMc X-Received: by 2002:a50:935b:0:b0:57c:620c:8f76 with SMTP id 4fb4d7f45d1cf-57cbd8b9e9amr534549a12.26.1718306540771; Thu, 13 Jun 2024 12:22:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718306540; cv=pass; d=google.com; s=arc-20160816; b=0YRO+A9j2094VrCmPN06aiF1mVCJwnVtXjmCEH99/X8DyKDHTv4bA581hDDCGrf8D5 cz0w8oamFnQNYQrgeFRulwEKwR4/kDFi+x+JFFJBtAcu8msQ5LT4OIcK4ZrlOfQKVgFz G6ePASpNKZ0/Q7EGWVNBk3nSK18CeWyjGqvQtfja2Lz2d9h9UlXtXGWNnAd8lup0eRDh gQGCQPiEEsIkEvgx5mjjE4ysBkBKE3v98ynwIKUuBx5ZCxTwRIESngqatkDYeoAOE94X PQbNmI+m1CH6YNwtjhnheA+OijqbmbjZU0yd+CKg/qJx4VIHohUPRyfCq8WWFTpfxnu1 6h2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=lznOWuT3zuZ+7YZNo94Ic++y7Z2ydYmmMFGw8gZ0Wmk=; fh=ZLtuDApMJwM4WmTIflZwl022bKGPiGaHrbNIpYLBFcU=; b=KfrY1WLgfdWnJcwn4l7kWQCeVw9MCXaTLzeI400ePXiKf8c2tHHXCiQ2BeSAlc1p2Y xUVmOb6wA3P9BrE5ulny2+F8HFEPRIaF5qi9VR9nHCqtsALXUyCovvVsbjJwEjiT7KEF LjesDSbXlLbMUwtR0tiqnYj6Z/si4/BH9gKWGocpehjd0HrOAdle/W77qb4M8mGhZwHE jyGhL6BNImbS86EhDpbJ6KNUOtwM1YWGug1QTBP0rASZoR8ZKX23SIVglVeLPnuPcSCK 6cpFs39zVp8Nd2x4AtK64oVh/TLT38+vMQc2ix6zCi9HueQnu0poOaqP5+CUOu6i7Fxv 9irA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="w/JZTemT"; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-213909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213909-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7447be9si986183a12.482.2024.06.13.12.22.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:22:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="w/JZTemT"; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-213909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213909-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7D8C71F25841 for ; Thu, 13 Jun 2024 19:22:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0083914EC44; Thu, 13 Jun 2024 19:18:06 +0000 (UTC) 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: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 D2E4E14C59A for ; Thu, 13 Jun 2024 19:18:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718306285; cv=none; b=qezqXmKu43xlr8QTXk5d8fAScfIDf/gPfEfF51b+O6zYbvSEeVQJbmHE96OPntAOxsGT/TAC800N7oZ3b7OfIHzx65EPLinC6YLYsqtKozRco8N9rZvzdGhbHIr8E00hfaLZnJ88UByq76RoizVnIzbbhz+Y7daeTaKnnw4yh5k= 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.181 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 Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1f480624d10so12049965ad.1 for ; Thu, 13 Jun 2024 12:18:03 -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=lCUrBZwbbAkoZ3l78IcioUs2wIaoFLinw+M0Pv6VmDKMwXqYmPpnSnntRs2miNjLW8 jP2Z14VJqdPx/k3r1eTqR4ts8cljQ60/+ITlklB88uXNNXAwcBwrBXZR5M2rbcf88OVI yU7DE8QAyBQEuUhPn2f6AsVn+MQURWpdtMmy+IHfLBQSjs7+Fd4K+NtlMpS2Aavn66Tn jDLEG87ttSO3HPdnQ62jPSJAFF1hkWQtRjnZAk0l9LRV8ZxDttMTM9PFEsJXgFUCsEbF OMRkv6BEOdEnU6olj1XS/geA7qndXrc6srm0dOOLYF394LDR6afks1fwZuRqtSJeyKKb Fz/w== X-Forwarded-Encrypted: i=1; AJvYcCXVN0qfLL8zfRxy++slMFPl/zeSVA0EMNZfnoM3D6T8nqScS8rC47kPQjw4JgXdKqr/3vjXhmV8o5gk7a8L+esB1CTj6AcwrmMG/8tz X-Gm-Message-State: AOJu0YxJPzol6xgvCsAPW96Yri18f+sHYy3J+ncAFXnZCLEPww8sTOCJ KcGIEORChKhDMscTwGwFlJ7tIXDpYrkYPFe83fsfZPgVXnT7UANYxf4V2+UyFJo= 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-kernel@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