Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp421415lqc; Fri, 8 Mar 2024 01:09:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXvwhAf0TUOBo5RwtkCtzp3DNY97KbehVLJNY+mURhJnq3TyAhpu4SKFFUKXMTBFbNWxZp6LJ2+zoAZGYQWJqqUNZQFcuwtEzUexodD2Q== X-Google-Smtp-Source: AGHT+IFAfQ0v9gsoSPCb+8VigrxxJt1wnrlLM28Z5FMsazDkS1COxkTSr2mlfhgl0RT38jHmEdFT X-Received: by 2002:a05:6e02:148d:b0:365:1dd9:ee6b with SMTP id n13-20020a056e02148d00b003651dd9ee6bmr30161676ilk.25.1709888971922; Fri, 08 Mar 2024 01:09:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709888971; cv=pass; d=google.com; s=arc-20160816; b=PiTtwJDxehmFiZFGZYyr7Ul5olU8+qOBmhYJY/9OwRyF88Pnubc6jxNiiBWVF/gOTd 25sYQUHxCkVIzMP2Qwj9ukn2rd6gKiGhSst/2zzFwVU8ahLUDBynSbj8TC4sotkKoqmE SAXwVn9uFRAnXERLOny2XY+dzxJQf5J+NlDPsgbMSh3eN8xQ5Yw+LsfLMGPF6eUxf5Yz d9ZC9VHQe/rSp6Dc20bc7tPoQFfoQugw3ulaXoQf4o0Z2krAbWlfK3Hlqh60sIvRqr6h Y72w0mAbTGq65AywXRCdVYwWalTzM3iPY2UA4MB4ISjH4wJLOyKSFYvtuqEueco54LSx FZFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=svaGEJXZjL2eNDeNiDi5RZ+CsHOzMEPqRBv5Sno9R6c=; fh=lB/4M40lSLWLH2byhbfUVSqKaJ4YppF7wayZorCgZ1s=; b=LOv+ukbdgN4Mmonq+pJBC0SZmzC1Gvj9rsZB0JXnNtb3F4U78foJUlr0Iqti79v0QU cmVcsr7MgVGusXKC8HUNETd7BQQoQ18xf5W5dIZC3CCX1OmgZWsErz3ls3epZsqMAg4C eol6RwQEYhtIfIdm3Y3Nyy4Bp5Nm6mf0Qrf66LPdHLsZeIB/haggLnRHacbXsOWMLVRe l1N3GYbkGqKGCyMstXxvK+yVOyx23zXXPwy9intKpH4+wNPw8+Nftfw5nxAM5UTkcT7O zb3j4QhPaCtJkim7m9/c7f89B07tLwTQq4kVrnAnHX+WmuldOcbWdBFas7aRjv1VpQq0 gyaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sy+YczvD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96726-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96726-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2-20020a63bd42000000b005dbec91be93si15701265pgp.595.2024.03.08.01.09.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 01:09:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96726-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sy+YczvD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96726-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96726-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 941AD2841A1 for ; Fri, 8 Mar 2024 09:09:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10A6252F95; Fri, 8 Mar 2024 09:09:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sy+YczvD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B62A52F79 for ; Fri, 8 Mar 2024 09:09:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709888966; cv=none; b=K8eIEn0n37c4UkEf33CJ2+GLYaar9rUEDzyR4injIoZ+NKsAPDXskjri1u+RR6FF8OUkDpTsG5Y2fPEv9A/iSiQMdkiamaBkZ513Ur+8GvCjiucFdGPaQatU+KMopI6GUbt6rZdpXZWKFM4P7OwqLwysZcXXwh8A4r+OXEMhxL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709888966; c=relaxed/simple; bh=v16FgxoD4jrKW4DEZ2p6BiXqbxPb+7o/1XZr+zdbld8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N8DYgCcdpfURORfsi+QayyAijPYS/ZKq7tjDLaS7a4CvYXHXs3w1cgFxXWLW6OCuu3R34M0GiBj3fp4ZYz3MoGFVdYCguc8TFVSLR9pQyTPhE/+CsWSNzYC3NSkhfLiRfH+oTxP+VBanwhgdPI9IZgcAJssxsK+DJlWtgaRFAcU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sy+YczvD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B6C6C433C7; Fri, 8 Mar 2024 09:09:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709888965; bh=v16FgxoD4jrKW4DEZ2p6BiXqbxPb+7o/1XZr+zdbld8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sy+YczvDG6c2AeBXhxb5VElBD0BrCFbb0Q74TH3cp5WXlCVitaxCh9lCXgApm3b7A 46oflEALayLxbh5FA6XFYkkZMGd1C4955wle9QBfzPi7tO4QCvWODlo93CK7cl+xqm 2yec3of5kSvv96OrGHnan4dtE/zAwMIK6iOpwIUNKaaAmVWDmAbGNTeXFFNChcQRbw kTlKmH2KPRySP4S7Fmr4g8bTEfVSjvrwfwVIMBceaVBTGJ54NZ5X88To+TH1Dnd75d sacCq75SHdHlJWW4+K/7HbJMC+gktckqawSjz+rnZVbpEbnO5ah6SzQieh0jTyAwZ4 KzDmymh50vDIA== Date: Fri, 8 Mar 2024 10:09:21 +0100 From: Lorenzo Pieralisi To: Jens Wiklander Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , Marc Bonnici , Olivier Deprez Subject: Re: [PATCH] firmware: arm_ffa: fix ffa_notification_info_get() Message-ID: References: <20240307092104.937440-1-jens.wiklander@linaro.org> 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 Content-Disposition: inline In-Reply-To: <20240307092104.937440-1-jens.wiklander@linaro.org> 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_INFO_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 > diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/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 = packed_id_list[ids_processed++]; > > - if (!ids_count[list]) { /* Global Notification */ > + if (ids_count[list] == 1) { /* Global Notification */ > __do_sched_recv_cb(part_id, 0, false); > continue; > } > -- > 2.34.1 >