Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp158225lqe; Thu, 4 Apr 2024 02:51:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjZ0x/Bi9tZMuEx8JlMYaw8MqoqXgLPPxl5b8VgzIwtkxSUFNijkM2UL9XPTJfM7EMKWgw3wrnRljo0QdDYI+U7QjYflOzzOx2EfddYg== X-Google-Smtp-Source: AGHT+IHQ1YK+n0UNEpHiqq8LYx3Q5JGxl144kSxGS2jPEtvEutKjPyCxW3j/x5Zu9p9Pkb5G+Lth X-Received: by 2002:a05:6359:4c91:b0:183:90a2:f4c2 with SMTP id kk17-20020a0563594c9100b0018390a2f4c2mr2380749rwc.12.1712224301946; Thu, 04 Apr 2024 02:51:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712224301; cv=pass; d=google.com; s=arc-20160816; b=nNPrjCIyqnG5yE88Bd/Vizq9b1xvaPoJHoaNaV6p/pZyiAvP4yWNw9Y7RHTtYtgQaI yfM16CZfWiJlmN4d9f8F6MHu1OYAi0LaOSLzKsvHnk2m1ANoR/hs2BhHaFRDYmEUH8Xj jqrtVU8G8oRMREaXdFPVvyuptfuRbN6s29FijjVQJhm5N91OGCgxe8zsc6kRm60hbT4A RpG2qroe3XqkVBwd9IOg1zqee1LZDjbWrehSse3vFUfoLPm0LBJ5O9/Degq9H0hyrAVX gVPlfBqTPg8kcDAXxJJSyrLHruww7VRuPgkbQHSyrPr+IL/NAnOCKwIC1UWOC300Bl9q XqlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=ZCVvlhWSWgnr+e+YAH4Uwqb/MjQLs7SLYcXLL66maQw=; fh=bJHbS/qc9FhKRkFbxKxFEYHzNVHTx1ghoj/7Vkirdjo=; b=rQzuEd8EtOoSi2US0L0nYztOivQSkozBvcVZ9RlwVAwvERgcKVEfC5ZvXqKBolUxg6 6pS7ZACOHrlj/T5WkFunzPZeDFpZCD/kJI3IvdfAGVpu7xjPCiyZavm91vRadDV2o+rP YUGciX+xxT0Gk/X+H0naYqSqd7Mk9QFTaz8YInZjBd1REoc/m6AeLnfXMSojBZ/RtFpx mk8UhBjffkXRcXgdDiy9/h/2bv19mZ7nM4O54vn0Zw2IcIh9TXHKALTpcdhpWO7PKJY/ g+Hw7Ya4A/VtYMEUIN+PmV+wvJ5IK+fNkPrp5NaMAG6z7hCSLnjPctsJNXcJh8AIQprd ypfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qj7CQ2JS; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-131202-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131202-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ca22-20020a056a02069600b005dba8009eb2si17072030pgb.724.2024.04.04.02.51.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 02:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131202-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qj7CQ2JS; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-131202-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131202-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9104E28D92B for ; Thu, 4 Apr 2024 09:51:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C85874C09; Thu, 4 Apr 2024 09:51:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Qj7CQ2JS" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 D3FB28F7D; Thu, 4 Apr 2024 09:51:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712224292; cv=none; b=gFvoSTjpZpambtiplucToy40iTgKphs2cwtYIwDKYY/N6FalLiom3DWZFdXQgG4QUe9liX3PiaVRnnLMEyexrpxwzWixNgnmQ5k/FKgYnH4vI3X8apQhSPJaADl/qE7xRHIJQ/DRXlH+TMwBm1T/pG01fa0qxV0Z7/iAfebukoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712224292; c=relaxed/simple; bh=QXkkR+15Nk+Hzti1dm3lVDSpnwBTvtUHwgacoad2c0Q=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=IEchrTZgcWNsItqKNKZAzrWwA8iYOrturHm/A1DeG7vfrKlA/PBb9e/bn7qyLB8Gs1dUfipXOFmmztSvkkv/Mf3skK+rHyZlLIGZuZi4YOz1GeZnpxrLxpjpYb4XYCKYnQvoQBo+1k5PhrltjR/1GAlkt7+WQga7acI/05t1Ig4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Qj7CQ2JS; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712224292; x=1743760292; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=QXkkR+15Nk+Hzti1dm3lVDSpnwBTvtUHwgacoad2c0Q=; b=Qj7CQ2JSi5Slr5b6W100qrMOzcC+zGCQewKp3L6H08G9NWqRJexY5YGp Krc8k7b1WBbe33z0vvs0YtZZN/67ektrx+4MCrOmizxsXwKnlaGp/cGyB 5OiguhQ6j5ttKUpwpq0PSs7ZVjGtVS/s2nxMRfEAieQMFajADxYMdnFhB /65r9kX5IyzsGWCym04bR2XEnsjIJGsmDMs2nN17hC9kFe0l/OQX2qWqP 02vbZOhg4JVNRDcDCP48drU1te+x+MHUZum9VJtYaZqvwHszVrR7cmFZC m5w9HADugAw3WBkBgqL/h4xHK2rHIZXICmuE+4qgENtv0HkKK8tuaoxLF Q==; X-CSE-ConnectionGUID: 7B4gZy1nTeePolv4VVl5xg== X-CSE-MsgGUID: 46/ue34OTzOl+2STJaL90w== X-IronPort-AV: E=McAfee;i="6600,9927,11033"; a="7393831" X-IronPort-AV: E=Sophos;i="6.07,178,1708416000"; d="scan'208";a="7393831" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 02:51:30 -0700 X-CSE-ConnectionGUID: ZygVWsUXSny15fRqkdCyjw== X-CSE-MsgGUID: 42Z4lqgpT3m7ucWMfJP/9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,179,1708416000"; d="scan'208";a="19186529" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.26]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 02:51:27 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Thu, 4 Apr 2024 12:51:20 +0300 (EEST) To: Lukas Wunner cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Mahesh J Salgaonkar , Oliver O'Halloran , LKML , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 1/2] PCI: Add TLP Prefix reading into pcie_read_tlp_log() In-Reply-To: Message-ID: References: <20240403100206.4403-1-ilpo.jarvinen@linux.intel.com> <20240403100206.4403-2-ilpo.jarvinen@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: multipart/mixed; boundary="8323328-71238506-1712224280=:2725" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-71238506-1712224280=:2725 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 4 Apr 2024, Lukas Wunner wrote: > On Wed, Apr 03, 2024 at 01:02:05PM +0300, Ilpo J=E4rvinen wrote: > > pcie_read_tlp_log() handles only 4 TLP Header Log DWORDs but TLP Prefix > > Log (PCIe r6.1 secs 7.8.4.12 & 7.9.14.13) may also be present. > >=20 > > Generalize pcie_read_tlp_log() and struct pcie_tlp_log to handle also > > TLP Prefix Log. The layout of relevant registers in AER and DPC > > Capability is not identical but the offsets of TLP Header Log and TLP > ^^^ ^^^ > Somehow this doesn't seem to make sense. Is the "not" perhaps wrong here= ? Hi Lukas, How about changing it into plural and adding a comma: The layouts of relevant registers in AER and DPC Capabilities are not=20 identical, but ... Does that sound better? > > Prefix Log vary so the callers must pass the offsets to > > pcie_read_tlp_log(). --=20 i. --8323328-71238506-1712224280=:2725--