Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1525158lqt; Sat, 8 Jun 2024 01:42:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhJ8NipKQoR/e79XYOhLCraSLO5xVrq+Uf7BgmmsLaW7z+wb/QBqrhbZwthmMojINpR+UchNmEJHRGtOfMUER49G7qFeOz3znuLaIisw== X-Google-Smtp-Source: AGHT+IGt73PGus8+5YqtXwDLB1dt5uXS11Z7Sr1zTE9V8UC5WCiCKVSyYmjj/4kvqAVJBDx4zq4p X-Received: by 2002:a17:906:f6c2:b0:a63:1e32:45f8 with SMTP id a640c23a62f3a-a6cdad22200mr312707366b.59.1717836153971; Sat, 08 Jun 2024 01:42:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717836153; cv=pass; d=google.com; s=arc-20160816; b=WdZRInN4IdTO4nnsX62Q5ehQOMsxXPQl47b7Vl6vLvZPh6G2JylUgkzm8CGEWle/cT 2qsNlKKuaJG7FRtkd2XS+1y38+i6dIsbz5CoajOqPXSZ70kZleaA/GL9LKNUyCupB/vu f4msYZ6kjxjg1laJWk+vyy4Fqc7J+D10gq0tCq+kngNU9Vws8NbX0ZZNrNuOkzAZsy08 xc8aI8someqnJa5J86bRqiYp5IuYqKUFDbFLli312sozJdJTwJXb8P6yvqAxwdRNy1fN Z+ddn3WE6Onm0L01qv13XxNgD/wCLdTdAxoZOBIGUXxV+V1iYDW/uottRd4EjDzq56Eu VC2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=KrRV0K7qM//zF7k7nBxFvGaC0VMKx5ZDxDv+YkPdsAQ=; fh=n50gDHaKHIlPO55CR6ZrAAOvB9OFf/+tKN04s08fJeY=; b=jNukVZiUafD8oh9uWXlSkzc2rZKwk6fUcii5yPQUoTBXDeMIQBYgHGRf1qKOhsCSUI QPbZi6H7QK3ax614PogcAwJeMDJ/X7msDsQASgHRvMfD33cehWqUexFyACibDdT21BV5 8tOKz1lwpAm7xwyz2ku+T8O5WhWvjuyPw25hDiwOdfE0ywWVwjtnmTEjVU8p+i7EvhU0 6XQhbxZ6ssbD0iGaAKqV4wQ7L5U2MF67/v6UQfHAjisWrycKK19oVh76H2ZScV003CtY H6zThLYoHgz7MMK8pN0wLlbmA9/AkTpspDhJJRPAg8Cjv+x8cl9u280oWqS7K3XocjrS +7ZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="Fac97a/D"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=qTE3M6ar; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-206952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c807081e2si265753166b.582.2024.06.08.01.42.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 01:42:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b="Fac97a/D"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=qTE3M6ar; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-206952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 A8E931F2218F for ; Sat, 8 Jun 2024 08:42:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EAD2176AC8; Sat, 8 Jun 2024 08:42:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="Fac97a/D"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="qTE3M6ar" Received: from fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (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 F29D5C8D7 for ; Sat, 8 Jun 2024 08:42:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717836146; cv=none; b=fUdgoL0i/75GPXoIB6wjeyEGuB2LFL33UIlBFdEYTPeLRvCsQGjkdWGXxJf8rMuhy9D+s9tjy0A/dAhrJLCGlwx8PBT2Ac0M90SvWF04fSIvQE6SpcdPLJbz9M9E3HAcZ73zIlst3z70anrQkDP3LkcNS9MG4JhrhqV9Rf0shhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717836146; c=relaxed/simple; bh=6kZFc5DiSeTnkUI62FQf0ML1rwBre/2oxEZulVNBqc4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=UQDWp/twbMPxR+zPU16JWnah/EE4pmNz2ZcXzsExze/UUotlgMJQVU3gVkCZzJl14ffTdh3kW3ME7uUQ+dKjuXW20PGI+hy1/wjnM+8JQ7+yu/QbrBwzZWa1zIRqZMZRrbX47FT4TTX/QAtRkf8lqrpQnluV/AQC1tp/sLon5gQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=Fac97a/D; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=qTE3M6ar; arc=none smtp.client-ip=103.168.172.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id F333611400CB; Sat, 8 Jun 2024 04:42:22 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Sat, 08 Jun 2024 04:42:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1717836142; x=1717922542; bh=KrRV0K7qM/ /zF7k7nBxFvGaC0VMKx5ZDxDv+YkPdsAQ=; b=Fac97a/DCp9qnD8GpA6lRjIAyG sKokYOKhHDMjZWerOvb0xSqTvbhPCtTzkyPrTEtsnZU6yA0HShcOSTUAgfSDcOS/ NZlYXgVfJOxECQSyV+W3Ztkagulbz5CT2K3nSsFTHlpcY7/56BSdMRtwMpHyTjDW kWM7gwokp3fwTloQRqdL1QVQwt+obzVA8NATH7jWKZTyes9IMA9WZLBgL6wGUjus JE99tpWkXtYXZHMsLPchYO3EOCkO1ojVQrPPRVHSE2kNj1zU4rI/R7ZEUkTDdH0i 6QixIliC1CCV/OLyNJl12gFvznjuTB1PWW5Fpg5j0sk/zuFx4f0/8GMHtsBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717836142; x=1717922542; bh=KrRV0K7qM//zF7k7nBxFvGaC0VMK x5ZDxDv+YkPdsAQ=; b=qTE3M6arSnyC2UTtWrovZI84D+ODsA48q2tTN1gF4Iqz g+KCs/O71+/92klOTCKniSsuekzVzZK/NoQqSqsZXMSfP9NMehLR61nHhQQUhC8G ZCAfwT/ZHwMl7xdEg5SBMKZsBC5qxjSMg3xXg3N4YBE2P1LDul9U7FnZF6hs16kX l6PR9V+w6nas5Z6nzdGCVNDqqSc6E/XswOrd23wNkyN8b8HnAVGZFzOVF0+NqkXI sWUGQyseKjeSqT1kbSNINiqxK7eyUG1iL4uZYJpoovrXT4XJvva/ZHUW03Bxva2j +cdyHSnCTyyivQkkr+0ZHVu63a8J+xYxL9qgpjRKtA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedtvddguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A665CB6008D; Sat, 8 Jun 2024 04:42:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-497-g97f96844c-fm-20240526.001-g97f96844 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <4a4b1675-3244-4032-ae64-82ca8872288f@app.fastmail.com> In-Reply-To: References: <2024042950-refurbish-duckbill-77b4@gregkh> <20240520110630.2568767-1-vattunuru@marvell.com> <2024060412-amulet-unflawed-f37a@gregkh> Date: Sat, 08 Jun 2024 10:42:02 +0200 From: "Arnd Bergmann" To: "Vamsi Attunuru" , "Greg Kroah-Hartman" Cc: "Jerin Jacob" , "Srujana Challa" , "linux-kernel@vger.kernel.org" Subject: Re: [EXTERNAL] Re: [PATCH v7 1/1] misc: mrvl-cn10k-dpi: add Octeon CN10K DPI administrative driver Content-Type: text/plain On Thu, Jun 6, 2024, at 18:42, Vamsi Krishna Attunuru wrote: >> -----Original Message----- >> > -----Original Message----- >> > The ifdef is cute, but not correct, sorry. Please use bit shifts to >> > handle this properly without any #ifdef needed at all. >> > >> Ack, will fix it next version. Thanks for the suggestion. >> > > Hi Greg, the ARM64 cores on the Octeon CN10K hardware platform always > run in LE mode and this CN10K DPI PF driver is only supported on Octeon > CN10K platforms as the DPI PF device is an onboard PCIe device. Can I > remove the BE format and only define the LE format for the > dpi_mbox_message structure?, other HW device drivers of Octeon CN10K > platform also only support LE format. Isn't this a regular Neoverse-N2 core? That means the hardware does support big-endian in principle, though it's usually only used in VM guests, not on bare bare metal and the driver is fairly safe. In general, I would always suggest writing portable code, as you never know who is going to copy from your driver into something else. Writing this portably is not that hard or less readable than using bit fields. Arnd