From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.29 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796288838; b=joA0+6ZmURKNBnJj9Zpmhe9qmP2LRLMCZDc1krN+ZTrXeFa4cYlfaSAWw1Lj4sT81Znn tatwG/oVv/p9E1pmc5CWcRl+wXVNnXiUcy4z0z5NWOOuCSxDQw88bKZFrISv2yHrSAMd+ EOISERDhFY7cSyLDpZ7KaPSBvlXhbkdLaL/Hmx6X1wmTTKACHlN/UpGeGeb97jaXa6olx jS+FUznRO8TmhDZGdL6E0dh9G8IAE3whoIVKuh8ff0c62pjTt1IGpUbb3CRacPTVUtqHg oqpq4eqE36cN5Fi2QNuuWuqKEdMKVnCMz1vW3+BPgheUEzbEmO94Wr5+RI7/t2ggfSQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796288838; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:From:Content-Language:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=ByEvjjIoVvjnJAgP/d0Geabp+4vTnlTKreA/Iw4/Na4=; b=TcZeqlXqLa1DkifYGqTKHmuOlMTrWTxeluz/2lRqm4N4+JakjfGFSWHx4f8b8zZEeqq0 yOH9Kkkod873zT0M91FUMTgHxqVd1DO+P4C3wmmY3DPad9RgfKuBMNTAEXBkoFKO2OHca e9WUNzOtzxw3U6+fqIL6VoFyMVULeVwTTSYNJpqBiEXafoyfIhLX3O5nbZ+IIWGYDkbBs IuIetYmPsRBc0RN8gzoJQrJcpvz9k2M1ajleLmdXFt42p7zVhn7Tyn3i8Yq9QX934saOB a4a212htBZD9JS9R1q9NM+iOIUFVXy9mGEEN36dsijwySRIsdOqdgCY7Wacz3UhvuJQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=aiYXmrwS; arc=none smtp.remote-ip=95.215.58.29 Received: from mta1.migadu.com (out-29.mta1.migadu.com [95.215.58.29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 614A1606A68C for ; Thu, 3 Dec 2026 09:07:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 614A1606A68C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=aiYXmrwS X-Envelope-To: linux-rdma@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=634+7Z2/6e04O1/N4IgcDx3iyRhhD2xejX9Qwglf+Jg=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796288833; v=1; x=1796893633; b=aiYXmrwSxMfgoM5OTeKWPma95WiRmv3FS/wLVsodA8bTtsXy+j7cRl8brxHJ9MUly2Aw4eP7 DLKnOOm+wt8xNyIaiNJ1WlS5l2hPFHHUMU4gTMTweVnEe9aYZcUy8fYixYgiOgg968pgBrPdqWF BDOU5DWplFbAmzc19Gbn+7X4= X-Envelope-To: linux-rdma@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id edaa36333270bdbf; Thu, 03 Dec 2026 09:07:12 +0000 X-Mizu-Trace-ID: edaa36333270bdbf X-Migadu-Flow: FLOW_OUT Message-ID: Date: Thu, 3 Dec 2026 11:07:10 +0200 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH for-next] RDMA/efa: Report device node description To: Michael Margolin Cc: jgg@nvidia.com, leon@kernel.org, linux-rdma@vger.kernel.org, sleybo@amazon.com, matua@amazon.com, Yonatan Nachum References: <20261202164210.4904-1-mrgolin@amazon.com> <2b274930-4472-4cfd-974b-515d54957fa0@linux.dev> <20261203085633.GA14440@dev-dsk-mrgolin-1c-b2091117.eu-west-1.amazon.com> From: Gal Pressman Content-Language: en-US In-Reply-To: <20261203085633.GA14440@dev-dsk-mrgolin-1c-b2091117.eu-west-1.amazon.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 03/12/2026 10:56, Michael Margolin wrote:> On Wed, Dec 02, 2026 at 07:11:52PM +0200, Gal Pressman wrote: >> On 02/12/2026 18:42, Michael Margolin wrote: >>> +int efa_com_get_node_desc(struct efa_com_dev *edev, >>> + struct efa_com_get_node_desc_result *result) >>> +{ >>> + struct efa_admin_get_feature_resp resp; >>> + struct efa_admin_feature_node_desc *nd; >>> + u32 buf_size = sizeof(*nd); >>> + dma_addr_t nd_dma; >>> + int err; >>> + >>> + BUILD_BUG_ON(sizeof(nd->node_desc) > sizeof(result->node_desc)); >>> + >>> + nd = dma_alloc_coherent(edev->dmadev, buf_size, &nd_dma, GFP_KERNEL); >>> + if (!nd) >>> + return -ENOMEM; >>> + >>> + err = efa_com_get_feature_ex(edev, &resp, EFA_ADMIN_NODE_DESC, nd_dma, >>> + buf_size); >> >> Surprising it's the first usage of the control buffer and it actually >> works. Is it needed because there's no room in the command response? > > It worked as is, so the credit goes to whoever wrote it :) :) > And yes, the response only has room for 56 bytes, so the 64-byte node > description needs to go through the control buffer. I do not know what node description is used for, but the code looks good to me. Reviewed-by: Gal Pressman