Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp320895lql; Mon, 11 Mar 2024 04:01:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwodpWv/1Sp5WKvzvoPaYsuV/TAOIKhFmQuwuIH0W7cZp600D6HJIFOUcSURaLViYw/sgJWo2X0mZLDQ7pkRQvEzN1wttBHYU25HjjKQ== X-Google-Smtp-Source: AGHT+IHlSM+NaMcZ/YgOQkOBR10JFMKikbx3jStPmO0hl8lCesoSGTK1Ugp7fzgOadEjzxZVodAV X-Received: by 2002:a50:c311:0:b0:566:13a2:3008 with SMTP id a17-20020a50c311000000b0056613a23008mr4982202edb.6.1710154884752; Mon, 11 Mar 2024 04:01:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710154884; cv=pass; d=google.com; s=arc-20160816; b=VuFJdDsvQ9a6Tctv5EwnGsxy8tC2cXYAu3XCkjVmefv8WB8SjPn0AcNkfl5X2mlZKG gO+xo/aJSMw/BVtMbGRqugkydXgJXQpfPEfvOqLPLqTRopWbKa0O7IReYwQ9XcYoU5Ob gpOrLh8qh4QKcWdJze/FnBlEfjLHknF2WxbyaOJkItMXS2ZndjRwnwRwaTLKIjYt369G Usx24TbmngkN5Zmqtpzn862du4/vXtugwF/9EeXX28vjzrKVTFkcxl8h3y5FR4dlgsm4 c48QgPKWvk2LeLQzhYn5EuDi1AYPheJ7QcVCx1GQBFBdhEYOO3giSbUcNYmYtdfyrljJ 7X4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=w8BY+YO3if2lvYNHvMPH3qE1q2AnqB9hh6Oit0y/824=; fh=1ButoEyWQAVChCskhuFEZw3a+as2fI8+XIC5G/PlmDI=; b=CCY/GDsLSUUpihtmK+zUCVFH0b3HGuv7NDEevik0BTsnb06tBPJ4qIy/vhUE1dYjaf gQfrBRjD4RyXCEYrlwRdTcv+vz+pqf5H7vzt+GBZPraExwnPYQB5dncLaLH4uOytIs2x PDEAgkLqE4f83SveWd0h/phX6y4yuHPQyjPxEh8Ie3C++dm1uM+Q/OQfKvg6cr1aJLym 2h+VWIe2lVdnT8Vh5Zanc6nfh9wNirNYx/kuXQwabnOkFwaiE4SGXth11LDL/wSTGRty vu/owoN25vU54Uv7cZyeSBO8IIgC32qQ7SOvAUV8pnaFNlFimjC9GunBZxT2nCEXENE8 oMSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="evVksw/R"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-98734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ev24-20020a056402541800b005670e6bf8b1si2373337edb.686.2024.03.11.04.01.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 04:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="evVksw/R"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-98734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 7B8151F21D0B for ; Mon, 11 Mar 2024 11:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE7CA3A1C2; Mon, 11 Mar 2024 11:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="evVksw/R" Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (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 8906639FF7 for ; Mon, 11 Mar 2024 11:01:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710154867; cv=none; b=L4feECUOHDNPmqYiTM77/0Ux5qlYPwxhJSQBsmhPvaoH1BtSecVHF9qZaelC7oWDljS4QSib+YyKU2Ns/s9e8BsvgDAVPi+J1KJjsfFqmQzUuHWeT+SOAnvjJ7eJNpKMbhiCgoNcGO5ngYejxhxLmVPxnX9VS5Ih+lkR91gTsfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710154867; c=relaxed/simple; bh=fAjEWASOcvzkRnUw6xezzj5HnL43BJmAQOHi2d403CQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=U1CjIaFNm8/JMqqOZvZjZKMNtdk6yWYWj9zUr4dYMSVJe3w/z3yyGsnqKs6bY6Xia5Xt3s8tvlOjENsvO47ljVLOk4eC24GiNYtclxYTO8XC//NrM0QLPNyhAwPMGKONecaByWYXMS0XCuLaS13fkRMTybiDm4FtP6EuCTcwNI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=evVksw/R; arc=none smtp.client-ip=209.85.167.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oi1-f177.google.com with SMTP id 5614622812f47-3c2313de2ceso1534880b6e.1 for ; Mon, 11 Mar 2024 04:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710154864; x=1710759664; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=w8BY+YO3if2lvYNHvMPH3qE1q2AnqB9hh6Oit0y/824=; b=evVksw/RwNAWJ3OcxClIMJFHjuC29HO7AIgBvv34IAfxFwqhQTMNcCg1tdE3y34IxS gN2C4o/S8TowpmLuT2ua/6YTr7OBvDHQitFRaXoOPwLtwqCpaQuIFESSkbsgU/47bg3o szaSbpmBHAOF7eC5A2kaCKnqJm6IaXa6CyncJU86Uaikf+Uq4edSDvAxBJWxTIjr0PO+ h/CoUBqAh71sQh6XR+d6R67/s8cBbwReKOOdVSRnwS8ThZlByEB9MgezyETXSatqKrIK iT7CIbMKIjLtP2I022sQunVq/BChoCTUY2H4ATKtOhCrQouzw67IDif2L8Yj67cSCctg n9hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710154864; x=1710759664; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w8BY+YO3if2lvYNHvMPH3qE1q2AnqB9hh6Oit0y/824=; b=euz9RFf+fzFX0DHc4nlqNSzORr9awxe1hgNJ8BSLo8H//LtC7Q0JQxTJcewVjmHxm/ XKNzVAHm3zQM8ojWU2A5zITl65qFv+8u8fSLGomiL5/sh9eF6ifA6X4IQ6bb2CcAKZ0f ckaI1L3FBFCUEMf64JkKLhbBbZxPfXoisWEAp36ySgp6AQsH0l68WXjYQR94cKHa+oOh ny+RiAoKIyzqDb4TAmONeKfdNwGn9E+A91NXA7MklzYu3pvFug5RYdvP2KdYxM4dKwc6 vIN8leC1r9FfJdH7F5hUrjpUacVWsDmCtZBipZOCASQQ6jqanfLsYERSgJAkYmUZ1Bx6 Cmhg== X-Gm-Message-State: AOJu0YwnNgRSeg1tV2vgw/EWh1vgeqMxhaidpUmNuE78swxiG5z5Q+a+ LYi6ClWH5jLsSog21kvdRSuFuLKZLIa7GyBNVxO2uwnShYf4N2X9QlLdU42Y0CzZqnpoPnzqtSm 8cud1JV6LjE3zFNcs7hbe+CvhMQV/V/9qfcKg2Q== X-Received: by 2002:a05:6870:1197:b0:220:fffc:e085 with SMTP id 23-20020a056870119700b00220fffce085mr5304400oau.18.1710154864524; Mon, 11 Mar 2024 04:01:04 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240307092104.937440-1-jens.wiklander@linaro.org> In-Reply-To: From: Jens Wiklander Date: Mon, 11 Mar 2024 12:00:53 +0100 Message-ID: Subject: Re: [PATCH] firmware: arm_ffa: fix ffa_notification_info_get() To: Lorenzo Pieralisi Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , Marc Bonnici , Olivier Deprez Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 8, 2024 at 10:09=E2=80=AFAM Lorenzo Pieralisi wrote: > > On Thu, Mar 07, 2024 at 10:21:04AM +0100, Jens Wiklander wrote: > > FFA_NOTIFICATION_INFO_GET retries information about pending > > s/retries/retrieves/ > > > notifications. Notifications can be either global or per VCPU. Global > > notifications are represented by the VM ID only, or 0 in the absence of > > a hypervisor. > > I would just say "Global notifications are reported with the partition > ID only in the list of endpoints with pending notifications". > > > ffa_notification_info_get() incorrectly expect no ID at all > > for global notifications. Fix this by checking for 1 ID instead of 0. > > > > Fixes: 3522be48d82b ("firmware: arm_ffa: Implement the NOTIFICATION_INF= O_GET interface") > > Signed-off-by: Jens Wiklander > > --- > > drivers/firmware/arm_ffa/driver.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Reviewed-by: Lorenzo Pieralisi Thanks, I'll update the commit message accordingly. Cheers, Jens > > > diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_f= fa/driver.c > > index c183c7d39c0f..ff1f37a4b28c 100644 > > --- a/drivers/firmware/arm_ffa/driver.c > > +++ b/drivers/firmware/arm_ffa/driver.c > > @@ -790,7 +790,7 @@ static void ffa_notification_info_get(void) > > > > part_id =3D packed_id_list[ids_processed++]; > > > > - if (!ids_count[list]) { /* Global Notification */ > > + if (ids_count[list] =3D=3D 1) { /* Global Notific= ation */ > > __do_sched_recv_cb(part_id, 0, false); > > continue; > > } > > -- > > 2.34.1 > >