Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp111354lqt; Thu, 18 Apr 2024 09:44:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq7aAkv92wuPwx0Ro7gpkjNkDyde8C7nR0U3B4ABdQ74Zi6f2qtNgtQCi9ouvPwmFnXlyd1Lumpt1nzcwDf7SX1Djy0XRrfJvUFRSwPA== X-Google-Smtp-Source: AGHT+IGheCgjt2NZzwpspzpoJPBycg8gS0c0E0IUBWUR7DKni2GsKBvd9dstlGKDBeZ6MhlueTTq X-Received: by 2002:a05:6a20:9192:b0:1a9:97d2:8082 with SMTP id v18-20020a056a20919200b001a997d28082mr4556633pzd.9.1713458640533; Thu, 18 Apr 2024 09:44:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713458640; cv=pass; d=google.com; s=arc-20160816; b=S4lk5i9hOVg1MAF/+4LZkzl1AUxyUoAl8ZoIs8DWtZJlwBVfbpDO3aQoPXyDGB4Kg+ y2GSC5oRHh55Scgv81KiRBRmIE2mLbqAI98UpP5nGSWVN2boW2WComj7BS855qmrmHYt 48VK07SVOHGhdmpvrLhHBaFJMlXuZrgvz7pZ1DPwWHpvD0gLbnLNyFDX38N5N5wTWJil SOnJ26tNNZlIPBiB1y+EN5DxyBSkc97+5vpGgYy7Aj/ZuwVueVkVC5ES3H6AQ0H7433e GTJF7hx4QHZRtiOLyYzApGuB7GOelDNg4+xy7KnK6Lc8iH/n0EvpmPJwcycJ7lAXS1Ms FpcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=JYz/Mm7XL97gcC37XQSh6FT+KtzHg82q93nX3l947mY=; fh=rLrfDnIlgZ4x/QOOePbNqsXV3RpHNhPGoOka9q3DgJo=; b=05wCFFwsNqtjuQwZZUoYj3Gi3dIjo7zqF8Z5SPv9bGCbeWEKPxgrUKfB55dYHHZLFr 6IeLjBoKW9pUJ9F+xNF0qdBcSekkzVtI2YrRMKXbqdQImv4y2bFsFnMqUYqNGT9hae6c tHLFvqUNLKmkir4U0NQdLycI4YAr+0n6OJqrRy4v9XiFXLp/ayH0BRlifjVV5MLIl1s6 8Z92szq8qjv68m7dIg3roHA4nw5W6/NrnLrA9ESsxw8DMahQA8sBYj+/KioOeN/YwJyS x/DFL8dUJZk5ckN1OE9a0vYpOhRAkRYTIiSmTuGV+57EpXOfZDgj/pyb7oYp5KYBS1vt uWJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iXjnS7tI; arc=pass (i=1 spf=pass spfdomain=flex--sebastianene.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-150485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j17-20020a056a00235100b006e69b04677asi1890215pfj.28.2024.04.18.09.44.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 09:44:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iXjnS7tI; arc=pass (i=1 spf=pass spfdomain=flex--sebastianene.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-150485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 43E93B237DE for ; Thu, 18 Apr 2024 16:32:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5763145B39; Thu, 18 Apr 2024 16:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iXjnS7tI" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 3A39A171E5E for ; Thu, 18 Apr 2024 16:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713457912; cv=none; b=GbOtCOfqbJNYPLxp/qPzhQkRGxV1QlWsWsL09m6roBu4IIv0Mf2r8cePngH2bhxoFuLRyK+pLQg9Q14353Dg81ClunUuLUAa0nPI5EkKmWRlrZUQgCEk5pacrnMWJjOqrQOgLH2+Z/yLDZ1Y1oWiMbX4jEasTi+K8SlWADY0dPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713457912; c=relaxed/simple; bh=reTusRmlKdivguaCRBJs9NeNASz4hK8OyNTz/hTvqXQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=tSylFOGxzSMAUEMJdujUcgVYz6HoTWaNSHzasjEWlqprhbHZJVA8bYwEHaCxAsyS0KWzZl7D8Nfm+7XAUabMMzE79C0SCNULVwdq+dw9iIeqnWny3RAGqQdEiKdkyr/0i7jRkOZcOlzXx4fKdGp7ItgetpIwV0ToitoW0POQ658= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--sebastianene.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=iXjnS7tI; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--sebastianene.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-61ab7fc5651so19327477b3.2 for ; Thu, 18 Apr 2024 09:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713457909; x=1714062709; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=JYz/Mm7XL97gcC37XQSh6FT+KtzHg82q93nX3l947mY=; b=iXjnS7tIyrM3FrBP7okFcGucQozESAuGdo+bfSadeiOxemf9xX8GCXlgIQcouQO1Ir 3tVVyTioNzKpKkyN6CU0m9Jsbg7nANNN1RqhEFEUhqhiTo0FiB4cpsHf0ic0f8ddgard dvo8zU1dISQIW5wQdo1m+86UTCJeZ+I8JKHRYo2asd+388ODfem9+ycbx3eVSOoMKQeg 0TB+baJ2TbR1hi5CM8mMvMwjVc/MFqWP+CTOQPvIG1pws32e6rzovQGcfQ2qAnidhqMM PyKkc4M84euSg1cOEGuqPGzjtnZG9JHEZKBZ9y6CIFG7qKAiblhRBbZZUIpJtrhOoeAZ rXgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713457909; x=1714062709; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JYz/Mm7XL97gcC37XQSh6FT+KtzHg82q93nX3l947mY=; b=h4dYFcBZZK4w7w44ZNe0gLO2DwfCbpfOagKel0ZeD6f8DbJkvxHpwbju6SFDjg2RmA BjHGpJUIiiUWTfH/1AhuWpVW62kvo/BDgbwXOFkzd4+hzFa3R8m5boYuPfL7Akt/DWgL 7tRjfOvNpA0LshSNlWbh+2eIeDM7YMpmPRBOvf3O956AZ4AhqhnWSdtmgER+eRbcB7wY tvuF8ZwYMhOnm+l89ZyTvPHe9aQltK1Id+gn7D/NJDUC7MXEG5XV7XQiMLZJfVqPiV/d me4R6ZqHTTvDdDc8tJrTsEOaVYCeUew6VuR0cNfar9yAjnV0MvlNkzr08tbldqb7uTZl 9mFQ== X-Forwarded-Encrypted: i=1; AJvYcCV60UhaKp8uetp+P01suskPVpPOO2+84HZbdFU+2S5JJjm46Js0+wYZV+01TfL1+l8rSmxPu5yowa7PWPz3qyMcAiLK5dkeHryxrG5E X-Gm-Message-State: AOJu0YxeCliBZtSPC4bHtLE/5/RFtALyKfcTH8gYkhrC28lKEWqaa1SA XMzueVLSe0tiS3TC9WDi/Hk6ka6jZE7JqfTq2quGK8c/G/VC4AubfM3rnQjpeDAO4OfziykyO6x 5Kx2RXuV89wiN0ukUL+MUxOcrNw== X-Received: from sebkvm.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:cd5]) (user=sebastianene job=sendgmr) by 2002:a05:6902:2b08:b0:dda:c59c:3953 with SMTP id fi8-20020a0569022b0800b00ddac59c3953mr882660ybb.0.1713457909290; Thu, 18 Apr 2024 09:31:49 -0700 (PDT) Date: Thu, 18 Apr 2024 16:30:25 +0000 In-Reply-To: <20240418163025.1193763-2-sebastianene@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240418163025.1193763-2-sebastianene@google.com> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog Message-ID: <20240418163025.1193763-5-sebastianene@google.com> Subject: [PATCH 3/4] KVM: arm64: Fix the identification range for the FF-A smcs From: Sebastian Ene To: catalin.marinas@arm.com, james.morse@arm.com, jean-philippe@linaro.org, maz@kernel.org, oliver.upton@linux.dev, qperret@google.com, qwandor@google.com, sudeep.holla@arm.com, suzuki.poulose@arm.com, tabba@google.com, will@kernel.org, yuzenghui@huawei.com, lpieralisi@kernel.org Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com, Sebastian Ene Content-Type: text/plain; charset="UTF-8" The FF-A spec 1.2 reserves the following ranges for identifying FF-A calls: 0x84000060-0x840000FF: FF-A 32-bit calls 0xC4000060-0xC40000FF: FF-A 64-bit calls. Use the range identification according to the spec and allow calls that are currently out of the range(eg. FFA_MSG_SEND_DIRECT_REQ2) to be identified correctly. Signed-off-by: Sebastian Ene --- arch/arm64/kvm/hyp/include/nvhe/ffa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/include/nvhe/ffa.h b/arch/arm64/kvm/hyp/include/nvhe/ffa.h index d9fd5e6c7d3c..146e0aebfa1c 100644 --- a/arch/arm64/kvm/hyp/include/nvhe/ffa.h +++ b/arch/arm64/kvm/hyp/include/nvhe/ffa.h @@ -9,7 +9,7 @@ #include #define FFA_MIN_FUNC_NUM 0x60 -#define FFA_MAX_FUNC_NUM 0x7F +#define FFA_MAX_FUNC_NUM 0xFF int hyp_ffa_init(void *pages); bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id); -- 2.44.0.769.g3c40516874-goog