From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 210181FF7C2 for ; Tue, 29 Oct 2024 19:29:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730230192; cv=none; b=d0H2jZorOjJjeHwJg/opxqfKBE8Jk7fWMUz6dI4wx++uu4JUgjYERvCd6IqitLqIjY8Jg/LnYgzFSDTNEWyrjGUQw4JanRYi9DUi9TTst8xOi/fzX79/5NsRSV4c4QR0Z5sp9tzd+4SrEjA9otCy2dvsTAsGL2OEqKBZ5co6KdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730230192; c=relaxed/simple; bh=LN7V5BQeKRXCPiL+YCrWG2j4TvAtcAaEOUEhSygUgns=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AIz6SL/6edOCMQaIiWnmDMKbU/GucE7CLHXnrxcTuqHU/LBuXfZzJSc4wWzzQXe3R08ievT+xnxQS/mNFKdw6CdL6PQNRt+aCFjgduXYTWQp7e8lTFmvGkCna0adDAPRsOVhNBBuM31Mg7l/lKhhalXtO2AFWWiXAbLg9c3yWUk= 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=mhEFYSCr; arc=none smtp.client-ip=209.85.215.176 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="mhEFYSCr" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-7e6d04f74faso135579a12.1 for ; Tue, 29 Oct 2024 12:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1730230189; x=1730834989; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=p453f5qLRHQrUMFO6yBtyDQCP3AS0fkH5n591K5O5UY=; b=mhEFYSCr82QFdTX9kitkI0S3dUZZv1eiE6GPRHfDwgu+S/Sc5dqqiRHjnI4k2R3oDI uqQ4xK3YRctbX6QxSITaSwgyp0qWokDZ/mpLxt6dTFB+RLDEBtqZdRLBXDJqOKGQmpxT LB5jYQI6c6E6VUQWhQ0g8HVTz+j04gkgjXthjebkWIkQZbYihntkC6ikzqZU1RiTHdgl ZiMEiNIkIHS2llQMxsxJGGj8XcMY+lQ9tYL1+UeaU17dDvNiyG8+SzIz7LT5cdxGwClP dB9CnBSv82/0xIg5+u/T4gEMLYRyugkzYNLvNDQdgUG85N8QvjIig/d/4hoHppyiZT22 ZHig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730230189; x=1730834989; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=p453f5qLRHQrUMFO6yBtyDQCP3AS0fkH5n591K5O5UY=; b=CDfy9WrlVVl6BiHgsdG2DHjWqTZIwdGCf9Xbr7VtPNtA9yX7XJdw8J3AzgxrqVDndL c+9m9wJsMcT2GW5Fz9CudJgDHPic6RHddf2a8NRbN4EWH4YG4IbUF32OA3xQIxRGhuRq B+/Zcu1SJv0Bw2z4FB5xc22WaqvOUlv44tqBIlpnj39Zq0wgqcAc1XgLGgAL+kBJkZRD RRfZQ5EXKAEC4foOpxGRib6ysU+QdaDgpvrxDzynSc7+zxir6LuD6KQX7uVA4S5fnuHp ffrPovXaso3pdXsf0xjsTKS+9/Ay6dtJEeek2D9sk7AXp/3RfwTFqJCNNkkoTdM7vMZe LIgg== X-Forwarded-Encrypted: i=1; AJvYcCWt89LY0tmkDtI3cOIe+Jh3obY7iFASDCjn1qQcZc6VEm6r8DpOEqhE7zTs8zBKnVSS8SFllh2qQ50S9hs=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5mF4D+Bs60ZjF44PW61ipYrwAfJJDQ46WhOOxEb6iwig2HzYF u9QCtVnmSDlQ7k3qhWWFItQvKDykbwM8Vk/kY/IgD0OCgCAEkDMSDgN253BvajU= X-Google-Smtp-Source: AGHT+IFhFlcCcvQjHhliRyZXirlOj5VprFQBCQ8QKlxSPQtXsUC/wqBDa3PY5cBoAFjEcgQ0R7Ad7Q== X-Received: by 2002:a05:6a21:181a:b0:1d9:15b2:83e with SMTP id adf61e73a8af0-1d9e1f0b721mr5535203637.7.1730230189067; Tue, 29 Oct 2024 12:29:49 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a3fdf2sm7909099b3a.214.2024.10.29.12.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2024 12:29:48 -0700 (PDT) Date: Tue, 29 Oct 2024 12:29:46 -0700 From: Deepak Gupta To: Max Hsu Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Palmer Dabbelt , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, Samuel Holland Subject: Re: [PATCH RFC 2/3] riscv: Add Svukte extension support Message-ID: References: <20240920-dev-maxh-svukte-rebase-v1-0-7864a88a62bd@sifive.com> <20240920-dev-maxh-svukte-rebase-v1-2-7864a88a62bd@sifive.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=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20240920-dev-maxh-svukte-rebase-v1-2-7864a88a62bd@sifive.com> On Fri, Sep 20, 2024 at 03:39:04PM +0800, Max Hsu wrote: >Svukte extension introduce senvcfg.UKTE, hstatus.HUKTE. > >This patch add CSR bit definition, and detects if Svukte ISA extension >is available, cpufeature will set the correspond bit field so the >svukte-qualified memory accesses are protected in a manner that is >timing-independent of the faulting virtual address. > >Since hstatus.HU is not enabled by linux, enabling hstatus.HUKTE will >not be affective. > >This patch depends on patch "riscv: Per-thread envcfg CSR support" [1] > >Link: https://lore.kernel.org/linux-riscv/20240814081126.956287-1-samuel.holland@sifive.com/ [1] > >Reviewed-by: Samuel Holland >Signed-off-by: Max Hsu >--- > arch/riscv/include/asm/csr.h | 2 ++ > arch/riscv/include/asm/hwcap.h | 1 + > arch/riscv/kernel/cpufeature.c | 4 ++++ > 3 files changed, 7 insertions(+) Reviewed-by: Deepak Gupta