Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp153523rdb; Thu, 1 Feb 2024 05:06:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5PCdeWPUfbDcDB95CGPuvCHceNbOz2nRxH157gSKK+O0eeUeTs/EBLQT4MF5LFV2uK02T X-Received: by 2002:a2e:aa93:0:b0:2d0:7837:bce8 with SMTP id bj19-20020a2eaa93000000b002d07837bce8mr1161232ljb.33.1706792777713; Thu, 01 Feb 2024 05:06:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706792777; cv=pass; d=google.com; s=arc-20160816; b=WR3vtLKTh90lccpkj5O7HEtFHNWu5H4erXHzcrrdTeJdWxwv1A0KIqNC1TzGwtJ2JS o2W9IjcZOTIQrDjHIFggKJif9VcUq5e7L4y/LTKNMsvSEFOASj1g1GTYeOZ/TsLvHBwe 4oEpQ3z77aDv0+r1VpWHCWmzV69rlnmFmRPCe/r24ZNKG75CuDX3E406ymYe+uNpL03L izM2WlyIlvgMCS6j6aMAi7MdCA7hwL3dqIEsuypyBbFnLnRUvZylVdF2vJKzX8jKxkuk R8GOugp7PE6OcaSzru9/xudTCGuhx3Si2d6c04xEM7dkEtmEFehPQotuD3noxx8Pkde/ AhQg== 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=Q4j/OGysh1p00GXnu3jrZ8vayx12mGduG1dVSS/BJps=; fh=UKp0XDFGLVXxu+hFFKvxyYub8qg0c13bcYv8YpBtLPo=; b=vD8ZNeX9EijtBVYDeEw/tgK4Cn+SE6nLY6LHitmC7ByH0gg92/Mu0jVtJLGgpHXhqz 9K/WEUECs10VZjqOAHYvmIZI2sqowUIGBZ+NC31+m8dpH7+s8EIB0V/C1I+yLgTV8B6g rgFuFvruv7GfoiWpUqJ+FNPkFoqoNn+ENSp3ee182Hn1XYqQhhcG3jLbNjKnBdBs4x8Y yrgfDph1q62DzeTYw+WdbVU7/0iGCXSuZlW4og9HK7TV45dD4BPRFMfQn4uMXJpY8V4b XybICrRGHcv1n9np7m/v9HkBuixGuNCphLGp44sK6ZddUcheO6p3D2RpMPAB/8frvYFN asuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=TSr9Udjz; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-47861-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47861-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXgyqv7FJ7INDxadN+s+5t/t0w2pCXXZDXKyo+E+Nl09TDFiI1g8ZxT58Wo7kKRBscQKst5HLoq4jscG6ouNVLLIMhdPD9Ey2ClUBiBGg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s10-20020a056402520a00b0055f43795b28si2926019edd.196.2024.02.01.05.06.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 05:06:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47861-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=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=TSr9Udjz; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-47861-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47861-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id DD5571F2429B for ; Thu, 1 Feb 2024 09:26:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABBDB15B115; Thu, 1 Feb 2024 09:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="TSr9Udjz" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 3CA7A15B0ED for ; Thu, 1 Feb 2024 09:26:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706779600; cv=none; b=ETWnmMoiNuw0BTYqu1TOpLRPi9F89F1v2Vm7XkkLzlpKGcpx9yUskIr22dFvv4cUVcONjA26gNsFITc7u9gUyjMs1/NyXocAwsEi+6j+U1WLdSWHV3GMLxRUBrtWEJpar5fTte1Qt07Mzb+JCxwDkyOnZmwRJavUZdiHUen9wDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706779600; c=relaxed/simple; bh=Y8Jdx7/2I9eY+OOZmGYIEvoOpC8kaOBC/weV3+AMr9E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZPmZQiUXdLZ/h11W/Sw/mxSMZRuTnTBDGwre7p8mCNN6HmBSGVdD2Pped7/8aKt3J/yFeFjV/D+hlK06E5d/KhEJSLWRDMjVpGcjsGYCe1w9Q//iel8khIkBj5LbzLshc38iIyCXgd4ZeWZHGnLOr+mytGGNjJQjrruqslAENMc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=TSr9Udjz; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-50eac018059so836098e87.0 for ; Thu, 01 Feb 2024 01:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1706779596; x=1707384396; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Q4j/OGysh1p00GXnu3jrZ8vayx12mGduG1dVSS/BJps=; b=TSr9UdjzL3/uShUlh5Q9Pm1eqnxQKOJ5mvZYFxXI7Y3Bg8Gbf4fji5Bv0FEgQVbvOC ZUtnwe2jfr6ylu39XGcDktVUlXp2yALByEtM6VLj9xR8f6vhx2j6rQPppk+xzh116B3a c0eyhbjSbTOwcDYExWBErjXjHIUQpo237iY8lNGIyN4JZQWBDhvm5+kC/6aDvnQ2uIjG bjGKJCif/2PzT3ahDNHlvel9xVH7r8Hg1A75hwV/xI4tKGlUrZ+EyaBt4NZnheAlrmCO FZO3owzvbksb6Ddw5SZaWR/pSX7t0kws/89pNZ/AbAiTs72ligbT6qTgJjvKPNkfrX3h jLyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706779596; x=1707384396; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Q4j/OGysh1p00GXnu3jrZ8vayx12mGduG1dVSS/BJps=; b=lancIh3rbKDP/Gw9NxBev2c3fcov8BUXjaEvh7Mp2JkeR/YXq3XJ2fULjb9NZsceO0 Delmd6frc9Zl09Mp0DPrORoV6m2abcXyhSr2FnK2U21pSg9ksnUiTP4iTqGeFUZKu3CM ujIqngtX8fVh9maHAC9ERXfVtWkyfURxG7VgqWk+qsC6tKNzBcBwhI86EkIHZbsfovDX OwkMpynEfGu9JoQHN1VthaErnThbJlfKIBhTwHc0vcfXGrZrJ+bYjAsnbUe5M0xOQPUN sPssoxyRybrO+qnnUChPV3dfFfjGUjX8am8Y9gqC1mBqG9a2telcYC1rKxbfv5E1vKJ+ FGFA== X-Gm-Message-State: AOJu0YxJlOs+Btn+mCYtesA54MTYg3QDiZIQ2vfsZYwhLxISa4g48l3s qqmcQRwAU1LBjFc9j8+3Gojlz3SXbiGZTAiTc3yBBfPsFHzeninjWMbmXOTXX5DmPBxccUgW49I DEzc= X-Received: by 2002:ac2:424f:0:b0:50f:1c90:d3d5 with SMTP id m15-20020ac2424f000000b0050f1c90d3d5mr1333532lfl.24.1706779596042; Thu, 01 Feb 2024 01:26:36 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWOtaVz8GM+WZvodVDKtJwSMAAPbO63TGVulAslgxR+dUVpDDXHlRASNIGqIiwCX5r+AkJvjQ9jcDZUYk+NBvOwBBn4urasN5u1nERxh8t7DM5R41WFIVhWWGl0DXOw8f5obg5IU05Mrty9pd+ldnJmLHlHc19PtPGmojDjQ2hxNTayxSQ3WNSYsWczro+NAMn/Zimg7yxKDA409qFsmdopS3mwK6OetTnl0vg0kMCUA/hCDvzq0k944bf1TEomKW8WPmR345ZNYAtibOWcxQ== Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id l13-20020a05600c4f0d00b0040efbdd2376sm3847555wmq.41.2024.02.01.01.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 01:26:35 -0800 (PST) Date: Thu, 1 Feb 2024 10:26:32 +0100 From: Jiri Pirko To: "David E. Box" Cc: netdev@vger.kernel.org, ilpo.jarvinen@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH 4/8] platform/x86/intel/sdsi: Add netlink SPDM transport Message-ID: References: <20240201010747.471141-1-david.e.box@linux.intel.com> <20240201010747.471141-5-david.e.box@linux.intel.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: <20240201010747.471141-5-david.e.box@linux.intel.com> Thu, Feb 01, 2024 at 02:07:43AM CET, david.e.box@linux.intel.com wrote: [...] >+ - >+ name: spdm-req >+ type: binary >+ - >+ name: spdm-rsp >+ type: binary I don't understand the need to use netlink for this. Basically what you do is you just use it to pass binary blobs to and from FW. Advantages, like well-defined attributes, notifications etc, for which it makes sense to use Netlink are not utilized at all. Also, I don't thing it is good idea to have hw-driver-specific genl family. I'm not aware of anything like that so far. Leave netlink for use of generic and abstracted APIs. Can't you just have a simple misc device for this? Thanks. >+ - >+ name: spdm-rsp-size >+ type: u32 >+ - >+ name: spdm-req-size >+ type: u32 >+ - [...]