Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp156788lqe; Thu, 4 Apr 2024 02:47:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQGLv7kz1rJBROBQxbu90WcI0igx6BjSWnnKHGIcl1oUVRaR1bbQYjcs5c08KM4ZXhT2jklKelQyaGxvjyYDoo1rtAs863zlw+i7oCDw== X-Google-Smtp-Source: AGHT+IEuLLVgk+/JxxW9ZeKKtSyM042YkikGIw33bk2Stghbq+mDE5FgZ0ej0V4ZN9EstAhwqQmY X-Received: by 2002:a05:6a20:3215:b0:1a7:a32:4af9 with SMTP id hl21-20020a056a20321500b001a70a324af9mr2149880pzc.34.1712224056870; Thu, 04 Apr 2024 02:47:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712224056; cv=pass; d=google.com; s=arc-20160816; b=NYZaW61/QDUqF0bAkAzXN/5eSH/3KNSalDWeyeR5DhtLXHXrpLUp43DGWAtfCRN2V/ pBiTw77XATAns4hqFRtdO4lm598zfAn5EAL8+zTGSMsdxcD7S+iiosLY0bEsxP4u/jxY 8cRKEfSNYu5NvjVQZ5FNYsM/gYkbQ6WKK2Wnh/V846iLv2JvFPn4m3B+xLIc8zj7h2e5 unEi7x+mHUdKuVqfoPGr3b9zu2l/vb9NpVPwXNNUUg+V7HAyU9cFH2zjDVn2MmaxKKXx n9t5uVcY4uNlR30oGt2DfPkiY9rn89o67rrpLucM6HxORBv+qxi0c5teux61SytvVxX4 ZIDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=yRdem8i6q4kZG+7BI1AQ3Pwk/LIaPcoA6vZJWYofcGo=; fh=qpqCAYQhPXkuVZxZLmUkTbveEiB7OkryjqZhqbB4t4w=; b=WEk4D2G5Q9YDERp8O2PmfwgrGpUoXRnNelqiDVTRphdOR5mBJ9bB6zyC4uzhSUgdSC 4g7niChlI+dZfgvUwVrbu4Nq2RHcoONZycyH5vFv20Uo76sGMaiP375MUylnxy3j9wsp nSoEsHB7BrOXc1uqguiO/hueIos4x+DOszaCSNMKOhybI2+sZfwN3wFiVaJHN0br8roL XiriBtQ9LG3MPyaciP/jgpI6G6fNU1DCh2WC24NYOx6K3906WHjo0+YNRvyh6D51sbQD zeRETH7oy7W7huo6V1j/OiQ/WAjL+nrO/DGyKpRHC9TSGAHcQN6jwndk+sPrGP4pEH2W D95g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-131195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131195-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o10-20020a170902d4ca00b001e2a0cfc3cdsi2025288plg.353.2024.04.04.02.47.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 02:47:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-131195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131195-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 80847B23928 for ; Thu, 4 Apr 2024 09:37:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D5D485280; Thu, 4 Apr 2024 09:35:00 +0000 (UTC) Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [83.223.95.100]) (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 954B9745C0; Thu, 4 Apr 2024 09:34:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.223.95.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712223300; cv=none; b=a1o0Wpim0+TLV0VIofekCbGG6urL1VruW/PcfYmX9j6Oyqvt3/BDn79IQrDjiV45SZEk2DfRaIyjQDeuIaohYywxnVpL0TH9FpSSGwl4fUNaRvTguOS03B36KNGTQH0E41MEdcJtGdpGiPj7Fmg3cn9FAj4PJHc+DZLvxvjB1V4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712223300; c=relaxed/simple; bh=cOlbx3VyA8Goyat6NvnGVEgExOlYfQ9rH5auXMVzt5Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aXBB4NrbkRD4TKJKeDybnWeNY73k+FrYsQoFLES+XQBiwvk1N4vitLDxhLqYndCza0RVCPCDsoV/KQh5k3sNnALq6RshtzUgBvEo2mIlmHty1HpIKFCCjzo2FNEjoHPb+Fr3sHqF/gEJM5QDyv7ku1BzavFnTrQQ+uesfJn9Nts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=83.223.95.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 9013530006260; Thu, 4 Apr 2024 11:34:55 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 7B76E5FC4D6; Thu, 4 Apr 2024 11:34:55 +0200 (CEST) Date: Thu, 4 Apr 2024 11:34:55 +0200 From: Lukas Wunner To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Mahesh J Salgaonkar , Oliver O'Halloran , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 1/2] PCI: Add TLP Prefix reading into pcie_read_tlp_log() 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: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240403100206.4403-2-ilpo.jarvinen@linux.intel.com> On Wed, Apr 03, 2024 at 01:02:05PM +0300, Ilpo J?rvinen 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. > > 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? > Prefix Log vary so the callers must pass the offsets to > pcie_read_tlp_log().