Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp339820rdb; Thu, 5 Oct 2023 07:30:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGubGE9YT1L/3xdcAdTDZtaecu1pAYJ6ZyzDvSL5HupXiNd3Dj3GNVssbZ7BFXID4lbW9uB X-Received: by 2002:a05:6358:9485:b0:135:46d9:12f7 with SMTP id i5-20020a056358948500b0013546d912f7mr4664315rwb.26.1696516218044; Thu, 05 Oct 2023 07:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516218; cv=none; d=google.com; s=arc-20160816; b=sY++QQd+jobdB/33XqkU07b0l+63zVfIJgDlQHic1pm23Ev0Bafx/boehzUtnc2xwl Fr7jXupWiDfAT4vGInEISekqOuk2KaFi6Vms9xZO7f5oB/3GmFbVGoB5focYNj7xOIbm TDjvDmKPHiOdemQT5O0JKxkura1q8ops1j3rTGd7JT+QuIM+NqacPYAT19r3zJ78Dfm5 AOQacW0gMNBEeEpZA9E5L7cSW7LXaqNYEo7XJlq4dAdl9XpuGGbO0IICX5p4Jkbt71ID N0obDoks+aHh1Qbgeaj+ZFqw1OO205sdvNP/UJiitPej/DbI/69XYj8QFs8orufLf1Pj j0zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mZN88iZNzUh/0bMpjJoHAmMov2SFFx31BRWDglRmz5o=; fh=sNmHlFw3f5Wn8Zk1dGTbtczT3TXfZR+Zcz9/FpplelM=; b=x8DShUhq45LE3YvhY1chEA/y8AiK7cz1P+vkfUU2lNSC5E0l6DwBdyTNnHioTlRsyE fpWC4bJMBGGJgyi6rg8Vdw8P2dfST6UZ9QEBZawMPvZ/J77Nmuq2xDOTrLB3q10nIZ9a KHWui8sAKK6qkK1dT7+YMAicigJLI/LfmDwp1AqsCB633gw/4AEf7yrwoR+XT25KB3ln /tXvorZloWHO3HYA/Q4CXTYbCruL6pJQzebV+YET5kzQ9YcN1dj0mUB1wPE3onlsiXm5 6cGiEkeuoNEClFrn3kYFvVzQyvoD0iw1C/8hDLL8JVGOzWiPsuQ6KbahywDDSsq2Wu0y HfRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u5/AzTTz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 15-20020a63020f000000b00578acf1e8a4si1590800pgc.573.2023.10.05.07.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:30:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u5/AzTTz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4DC2D804BC02; Thu, 5 Oct 2023 07:30:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233815AbjJEO3n (ORCPT + 99 others); Thu, 5 Oct 2023 10:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233574AbjJEO2M (ORCPT ); Thu, 5 Oct 2023 10:28:12 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA71672A4 for ; Wed, 4 Oct 2023 23:57:38 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-65af72cf9e7so3148336d6.0 for ; Wed, 04 Oct 2023 23:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696489058; x=1697093858; 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=mZN88iZNzUh/0bMpjJoHAmMov2SFFx31BRWDglRmz5o=; b=u5/AzTTziyhb9qzTux8lqZUvciY2wv5GaTD4CpU9NZOc0/TaKOJiPSQ48rBZYLvUbz PwYO7QS125J9V3HvV1/FyVm9X8j8XQnqYxkJc9z6tGr1u67jBglZs55x6rtxxLqf5JQu lfx74+kRAvMPB1js6kdoPN16BetgAaLfBlTECeVQXh8RlSZIfHe5kMtlCIaxfPCoUk6N hJazDfVZdT3Hr8eZA44djvvTuVxowomQYX58Y4XxnR7B9n4eAPPE1Cs9LBTZNky5gDk8 5L67GeBQ0gh6kMjmPSigoNV0oH+5x1TcAV/rP/7cRyyn8DlWUTd8cIeR9bM7lFIbBj+0 6sDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696489058; x=1697093858; 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=mZN88iZNzUh/0bMpjJoHAmMov2SFFx31BRWDglRmz5o=; b=aVJplnSmxGJ84Zv5I9yOtkUnpmMhomaeTOTDcoeRcSuuMaRgDoskuQUAosJyvSggto +7KQnRnp1eYP5djaanUOegg4FqtgIPmPNfnddZ8MGMDdMbHA83G4B3lyCuG0xJVWA+od 8OuM8ZKvKkHMLxgfkk7U2mMlR4ac+JbuDuUnAfOmSzU2vFEF9+nK4KAft3QEy+KSA5jN /ajW6QnCQQyY8aKy6hgjYTJvmCtpDE8fS6RxKv1dXy4xypHuR7PxWvouBZbxlpAGI3JY ZdWBGzqcZi5JBYHTKuGywi1I+VG4wJn8J+9FHjOBgDuCM+ZyIPvtDvOaRlGclo1eyX1Y Ie6Q== X-Gm-Message-State: AOJu0YwlfznCbEzA+QFOkiT/ijDil97OlQ+fdCYKXEYnHooMWHmAhUyT 1Vb2+QlSUPyqSjBMpGD38hTpqSeMCc0xq/b2JaKR9RQn2gEId6nLbXw= X-Received: by 2002:a05:6214:5497:b0:65b:32c7:91a with SMTP id lg23-20020a056214549700b0065b32c7091amr4283432qvb.37.1696489057988; Wed, 04 Oct 2023 23:57:37 -0700 (PDT) MIME-Version: 1.0 References: <20230929-ffa_v1-1_notif-v3-0-c8e4f15190c8@arm.com> <20230929-ffa_v1-1_notif-v3-3-c8e4f15190c8@arm.com> <20231004091154.GB1091193@rayden> <20231004153234.ktk6egntk7drao47@bogus> In-Reply-To: <20231004153234.ktk6egntk7drao47@bogus> From: Jens Wiklander Date: Thu, 5 Oct 2023 08:57:26 +0200 Message-ID: Subject: Re: [PATCH v3 03/17] firmware: arm_ffa: Implement the notification bind and unbind interface To: Sudeep Holla Cc: Olivier Deprez , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Marc Bonnici , Coboy Chen , Lorenzo Pieralisi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:30:15 -0700 (PDT) Hi Sudeep, On Wed, Oct 4, 2023 at 5:32=E2=80=AFPM Sudeep Holla = wrote: > > On Wed, Oct 04, 2023 at 10:50:26AM +0100, Olivier Deprez wrote: > > Hi Jens, > > > > > dst_id and drv_info->vm_id should be swapped. > > > > I'm curious about this because swapping like this actually makes hafniu= m > > fail. Need to check from the spec. > > I did check after I had swapped this in v2(because I was convinced Jens) = was > correct and you reported the failure. Reading the spec again the other da= y, > I got corrected myself and agreed with Olivier and my original > implementation(v1) which matches this patch(v3). I don't get it. The spec says for FFA_NOTIFICATION_BIND: Sender and Receiver endpoint IDs. =E2=80=93 Bit[31:16]: Sender endpoint ID. =E2=80=93 Bit[15:0]: Receiver endpoint ID. This is exactly the same as for instance FFA_MSG_SEND_DIRECT_REQ. In ffa_msg_send_direct_req() you assign src_dst_ids =3D PACK_TARGET_INFO(src_id, dst_id); but here in ffa_notification_bind_common() you assign src_dst_ids =3D PACK_TARGET_INFO(dst_id, drv_info->vm_id); Thanks, Jens