Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2283747lqo; Mon, 13 May 2024 13:26:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMtOImQSzPM/vhsz4C6sP3c5wK+wK8awGTbhyNM5JHybWsp44KuRFRo/FqYxzIClIIm6+Sz2La1IBZgQidg0RwVnwRbwIh5aWsE8aLiw== X-Google-Smtp-Source: AGHT+IFyN8np7FYmzr9RnlPVK6/HLuzHpVoghzH2Wr5DEhLeH1Q7SvnWopkLb8lwBuRM+P8OQBl/ X-Received: by 2002:a2e:97d6:0:b0:2e5:64db:b2d8 with SMTP id 38308e7fff4ca-2e564dbb348mr56332021fa.40.1715632013631; Mon, 13 May 2024 13:26:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715632013; cv=pass; d=google.com; s=arc-20160816; b=UMV+GDp43MjKdNeHASJD1WnagauFr/Ng2rM87UVwAMgFfvcuWE0dxK7feBIIsyjaFc pRF2mEhcbTsJ1HtoAvZSBqyHrDnE3keDNtbJd68K83MHUYf0cgrjme4k6U4ps9kaaw1F AVOK/x0onMdGGsjg9YWOh0p4ISvxOFyvRW4PxpdW3IKuE8D7WisDj9+L/unzndE0eqKM cxborgBPlt50AydbrvxlLina9uPuRO8EjKkVjwUggra5S8dxcNO1k71CBNpK+GL86oph lJK2nIUiwGkhWXSJa2u7J+DHYzMOW4aMQdGmI1QtHIgUZN+lL6hsmr7A8surffTsFaXT NSsg== 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=gcTnuspTzcXG4upolGwGV93OP3g/85J3TNVtbNWq9DA=; fh=FKCmjV0hPSgnc0jjPoW8rKzyR4VDDWn7sKDm9gozLCU=; b=MKkJ286BA8P/TMvk9g6FC5tNXmlb9hdcaxCc7aB9nveu41Qmyl8u/H9eRelLxo7Cph RyVB/Kr+4IwaKM5TA39vdawXWFTTcVPZKZIasd850WLULV7eEDGrYTJHnRg+YqPG0o9m KJBI0HB2k7GcpO0MNLp+cOJXU0K85iZNNoWiRDdQO5Myd74JRWUTxQa3+KLFWVLSrCPl 662XYWPPTaHq8aQyrxYk3nuVIvayFEZR42alqihuZAYnArbp2RduH2aITM4jOPp7wf4x UR5VbdpSSWYzryBQ1s2ttkq6yKxQEgm0Ww3Ob/3Njo8Vr/zDI5i60sqzAxfjP7TyxmBk sh2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=yRKjcqLT; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-178069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c37880esi5202785a12.650.2024.05.13.13.26.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 13:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=yRKjcqLT; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-178069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 599991F22A03 for ; Mon, 13 May 2024 20:26:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAF447F490; Mon, 13 May 2024 20:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="yRKjcqLT" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 C87857AE5D; Mon, 13 May 2024 20:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715632005; cv=none; b=kamyyPNcz9n9lyCm7gdxL0k4v67AdLD7Q+VBtBhAz8bbla7uxljFukhQ52kr1EqRNQ5OgX5hp7goljZZ/2/D0IJUKmi2ifQYalyLvAoZJxtSGiFAktSYfrKa85HLbPxDTuJ8DGVjyBsn+tjfsPw6GBH5rShB6FkOf/s8bkD5EIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715632005; c=relaxed/simple; bh=VNEzvjA8rLwZG4zn5sjyLB2KhundQsyggo28iU3zm20=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JRp6gD8kzWnKBO7MpThUH0iyA2h+60cwqst6CHpvPl2uTQiaJYMkqkM8sUd3zxkQeP8NDMHBsEl7XF9X28FT2mMLaqeZU3GRfTjWxsQPMAvjfrTjD0rRC0soEWlmu/ExTeLu/cMUXjD4JWBx81ojFvYR4oVSox3sFVJW0l8a894= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=yRKjcqLT; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=gcTnuspTzcXG4upolGwGV93OP3g/85J3TNVtbNWq9DA=; b=yRKjcqLTVCPpyMC1N/BQilmMAg 6JeUvm+AXURNc8QMCO3JmUx2ERzhMAmu+1o+lNWCVhtT+Iy6XOnEzivqSizTVZu9D9A2DDRZ9uWxI SXXGG0/NhdjUErhNKAHRd2OIrSN3qwSienA3orbizr5k1d45PnHDGs/6LJ0zsdgYZZ8w=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s6cFh-00FKm1-My; Mon, 13 May 2024 22:26:29 +0200 Date: Mon, 13 May 2024 22:26:29 +0200 From: Andrew Lunn To: admiyo@os.amperecomputing.com Cc: Sudeep Holla , Jassi Brar , Jeremy Kerr , Matt Johnston , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Robert Moore , "Rafael J. Wysocki" , Len Brown , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] mctp pcc: RFC Check before sending MCTP PCC response ACK Message-ID: <9e893038-e78e-43d9-82b3-c95cd7b51f18@lunn.ch> References: <20240513173546.679061-1-admiyo@os.amperecomputing.com> <20240513173546.679061-4-admiyo@os.amperecomputing.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 Content-Disposition: inline In-Reply-To: <20240513173546.679061-4-admiyo@os.amperecomputing.com> On Mon, May 13, 2024 at 01:35:46PM -0400, admiyo@os.amperecomputing.com wrote: > From: Adam Young > > Type 4 PCC channels have an option to send back a response > to the platform when they are done processing the request. > The flag to indicate whether or not to respond is inside > the message body, and thus is not available to the pcc > mailbox. Since only one message can be processed at once per > channel, the value of this flag is checked during message processing > and passed back via the channels global structure. > > Ideally, the mailbox callback function would return a value > indicating whether the message requires an ACK, but that > would be a change to the mailbox API. That would involve > some change to all of the mailbox based drivers. How many mailbox drivers are there? Generally, taking the path of least resistance will cost more in the long run. It is better to do it properly from the start. Andrew