From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EE1052572 for ; Tue, 12 Mar 2024 10:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710240747; cv=none; b=Xc+OT1PkOwx2nYcMILg9fwc67FAjzwu9H96kraNgxqEjchmbxVVzPLhVhubcNfVLI3sN6v904tR3LPdXP94KXGGgJTm3S5dV54WNazRNzRQ5ewhFqf54DHghbzEFgBEV/BSOF3SquObz9jQUoV9jm68xl2fRALvscmop/4OgSQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710240747; c=relaxed/simple; bh=gLB2KAEejr4yFbPG8yMOboe39FhTnoO5eBMwKPyo8g4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Lkz9Kdj5qzEJGYUH2WRIUkUMQ2Uml+t2WQdlK0V7wJfjSaiKUQ2xMe7nNDPDzt8V8w2Ooe0p2j6RWX/2rE3yn5ykPavBUIuDSapEYX0rAZTlw5lNru7xPY3t/5LVitmgmrt+C1r1I4ri7+AiBCazN6QWqTNd6sVJQBTF+LApyOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CzVsGs74; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CzVsGs74" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60213C433F1; Tue, 12 Mar 2024 10:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710240746; bh=gLB2KAEejr4yFbPG8yMOboe39FhTnoO5eBMwKPyo8g4=; h=From:To:Cc:Subject:Date:From; b=CzVsGs74ke+htWoFS1y92ISAzn84V9qYO620OqY4AaIRCoxZICT4QVvVOsI6RmJlY joo81K7vtNGO3Ve1YuFQCMgJABzfhXHYDMf0ydEXD0Ey5PbEtv1N3CVyy6hECWxbyh xb1uTmvupOXY2JFGcMbCFX5IR6VY9tvIu9rXIQgzSV6KCbVew6r0WzxhIBh8bS/4Ix ll/dhYFRaZVwnnJ4iBvaQWVNctgDvg6hWPCNNJjDi1pDZzdnMLpc3vTvMqrh9u0Dwz HemhIiE41ruFqblUSjv5c1HhnMSnlrYkYFza8n6hmvI6cgrKwfb5JSzBsR6w1OYmkx 4oNxChfd0Xr+w== From: Niklas Cassel To: Manivannan Sadhasivam , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Shawn Lin , Heiko Stuebner , Kishon Vijay Abraham I Cc: Shradha Todi , Damien Le Moal , Niklas Cassel , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/9] PCI: endpoint: set prefetchable bit for 64-bit BARs Date: Tue, 12 Mar 2024 11:51:40 +0100 Message-ID: <20240312105152.3457899-1-cassel@kernel.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Shradha Todi wanted to add prefetchable BAR support by adding more things to epc_features: https://lore.kernel.org/linux-pci/20240228134448.56372-1-shradha.t@samsung.com/T/#t The series starts off with some generic cleanups and fixes which was needed to make the implementation of the actual feature easier. The final patch in the series sets the prefetchable bit for all backing memory that the EPF core allocates for a 64-bit BAR. Kind regards, Niklas Changes since V2: -Addressed my own comments. -Added additional clean up patches. Niklas Cassel (9): PCI: endpoint: pci-epf-test: Fix incorrect loop increment PCI: endpoint: Allocate a 64-bit BAR if that is the only option PCI: endpoint: pci-epf-test: Remove superfluous code PCI: endpoint: pci-epf-test: Simplify pci_epf_test_alloc_space() loop PCI: endpoint: pci-epf-test: Simplify pci_epf_test_set_bar() loop PCI: endpoint: pci-epf-test: Clean up pci_epf_test_unbind() PCI: cadence: Set a 64-bit BAR if requested PCI: rockchip-ep: Set a 64-bit BAR if requested PCI: endpoint: Set prefetch when allocating memory for 64-bit BARs .../pci/controller/cadence/pcie-cadence-ep.c | 5 +- drivers/pci/controller/pcie-rockchip-ep.c | 2 +- drivers/pci/endpoint/functions/pci-epf-test.c | 67 +++++++------------ drivers/pci/endpoint/pci-epf-core.c | 10 ++- 4 files changed, 33 insertions(+), 51 deletions(-) -- 2.44.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C902C54E58 for ; Tue, 12 Mar 2024 10:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=AtL3j5ozeQ0RctTre/VbuC6ja4TBs9MPbSvtj/g1hKY=; b=Ix+jZ+AHL9N2vo mfjaSLtLow86WWY6NIckCc+6l0vdeKi6WiyqQj0LjCoV16IinK54ZAeoXojxppRiE+t911iSexXaC nZ+Y9yZPBsQkwTHUWKiedIp8tv+r0VJmnZCRAuubi8+aJjwPU9L6t0zG+lCplJP0ypfCo2Dj3WRZa kmc4zRDLuYjj6ftayJNMd7C9iPezR1HI0XJEJRLr7waW0BzqtFDBc9ejNpo12vLfdadO8utbKEg0k JlBi787JoaBHRib24iBtQTcpF1Qn70TzDvVaWvELEWJghBLqAOOQ4m73LT1tk2d7DO3WHq5eJrv7v IwQbZomvpSmboDXUxaug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjzkI-00000005QSy-0TpZ; Tue, 12 Mar 2024 10:52:34 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjzkD-00000005QPl-1qIP; Tue, 12 Mar 2024 10:52:31 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 276F3CE12D4; Tue, 12 Mar 2024 10:52:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60213C433F1; Tue, 12 Mar 2024 10:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710240746; bh=gLB2KAEejr4yFbPG8yMOboe39FhTnoO5eBMwKPyo8g4=; h=From:To:Cc:Subject:Date:From; b=CzVsGs74ke+htWoFS1y92ISAzn84V9qYO620OqY4AaIRCoxZICT4QVvVOsI6RmJlY joo81K7vtNGO3Ve1YuFQCMgJABzfhXHYDMf0ydEXD0Ey5PbEtv1N3CVyy6hECWxbyh xb1uTmvupOXY2JFGcMbCFX5IR6VY9tvIu9rXIQgzSV6KCbVew6r0WzxhIBh8bS/4Ix ll/dhYFRaZVwnnJ4iBvaQWVNctgDvg6hWPCNNJjDi1pDZzdnMLpc3vTvMqrh9u0Dwz HemhIiE41ruFqblUSjv5c1HhnMSnlrYkYFza8n6hmvI6cgrKwfb5JSzBsR6w1OYmkx 4oNxChfd0Xr+w== From: Niklas Cassel To: Manivannan Sadhasivam , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Shawn Lin , Heiko Stuebner , Kishon Vijay Abraham I Cc: Shradha Todi , Damien Le Moal , Niklas Cassel , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/9] PCI: endpoint: set prefetchable bit for 64-bit BARs Date: Tue, 12 Mar 2024 11:51:40 +0100 Message-ID: <20240312105152.3457899-1-cassel@kernel.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_035229_677693_498A1039 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Shradha Todi wanted to add prefetchable BAR support by adding more things to epc_features: https://lore.kernel.org/linux-pci/20240228134448.56372-1-shradha.t@samsung.com/T/#t The series starts off with some generic cleanups and fixes which was needed to make the implementation of the actual feature easier. The final patch in the series sets the prefetchable bit for all backing memory that the EPF core allocates for a 64-bit BAR. Kind regards, Niklas Changes since V2: -Addressed my own comments. -Added additional clean up patches. Niklas Cassel (9): PCI: endpoint: pci-epf-test: Fix incorrect loop increment PCI: endpoint: Allocate a 64-bit BAR if that is the only option PCI: endpoint: pci-epf-test: Remove superfluous code PCI: endpoint: pci-epf-test: Simplify pci_epf_test_alloc_space() loop PCI: endpoint: pci-epf-test: Simplify pci_epf_test_set_bar() loop PCI: endpoint: pci-epf-test: Clean up pci_epf_test_unbind() PCI: cadence: Set a 64-bit BAR if requested PCI: rockchip-ep: Set a 64-bit BAR if requested PCI: endpoint: Set prefetch when allocating memory for 64-bit BARs .../pci/controller/cadence/pcie-cadence-ep.c | 5 +- drivers/pci/controller/pcie-rockchip-ep.c | 2 +- drivers/pci/endpoint/functions/pci-epf-test.c | 67 +++++++------------ drivers/pci/endpoint/pci-epf-core.c | 10 ++- 4 files changed, 33 insertions(+), 51 deletions(-) -- 2.44.0 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1BB3C54E66 for ; Tue, 12 Mar 2024 10:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=eMomjGgJHhlC1wNB2WoBTr/zdWZPwxHokfKeQASR0Mk=; b=XWJnT8ir2A5qQ5 WKC9xxScQ000my3oFJDCgAm2l55hvYenQVnCuEcIBw/B+3yhHcAmjXgFLwoGXI3wyULdf1hcuDlqP vp0TVkpfIjHKlzfWNItSMNy68lEhgkrYKO6J2pgzXRhscmPEO0w8VWexAnj+Yn8WIS4byFy5xgTjC 79E5+Xk7iES+p3g8RRkAfaPsrPSjHBvbN0NzRVCZJGdDFhyA69uMM52RPlkMMOk4G6fUOsF/BI1a1 PY0VCL95DGfmXioyysXHr3ijZUFnsYXZiaedljNLJVAAYUMT/no4AgDV4YiRuzoOC+i27UlHB9bKZ IpHtIfmPgX+mMul1pm1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjzkG-00000005QRs-2Mro; Tue, 12 Mar 2024 10:52:32 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjzkD-00000005QPl-1qIP; Tue, 12 Mar 2024 10:52:31 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 276F3CE12D4; Tue, 12 Mar 2024 10:52:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60213C433F1; Tue, 12 Mar 2024 10:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710240746; bh=gLB2KAEejr4yFbPG8yMOboe39FhTnoO5eBMwKPyo8g4=; h=From:To:Cc:Subject:Date:From; b=CzVsGs74ke+htWoFS1y92ISAzn84V9qYO620OqY4AaIRCoxZICT4QVvVOsI6RmJlY joo81K7vtNGO3Ve1YuFQCMgJABzfhXHYDMf0ydEXD0Ey5PbEtv1N3CVyy6hECWxbyh xb1uTmvupOXY2JFGcMbCFX5IR6VY9tvIu9rXIQgzSV6KCbVew6r0WzxhIBh8bS/4Ix ll/dhYFRaZVwnnJ4iBvaQWVNctgDvg6hWPCNNJjDi1pDZzdnMLpc3vTvMqrh9u0Dwz HemhIiE41ruFqblUSjv5c1HhnMSnlrYkYFza8n6hmvI6cgrKwfb5JSzBsR6w1OYmkx 4oNxChfd0Xr+w== From: Niklas Cassel To: Manivannan Sadhasivam , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Shawn Lin , Heiko Stuebner , Kishon Vijay Abraham I Cc: Shradha Todi , Damien Le Moal , Niklas Cassel , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/9] PCI: endpoint: set prefetchable bit for 64-bit BARs Date: Tue, 12 Mar 2024 11:51:40 +0100 Message-ID: <20240312105152.3457899-1-cassel@kernel.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_035229_677693_498A1039 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Shradha Todi wanted to add prefetchable BAR support by adding more things to epc_features: https://lore.kernel.org/linux-pci/20240228134448.56372-1-shradha.t@samsung.com/T/#t The series starts off with some generic cleanups and fixes which was needed to make the implementation of the actual feature easier. The final patch in the series sets the prefetchable bit for all backing memory that the EPF core allocates for a 64-bit BAR. Kind regards, Niklas Changes since V2: -Addressed my own comments. -Added additional clean up patches. Niklas Cassel (9): PCI: endpoint: pci-epf-test: Fix incorrect loop increment PCI: endpoint: Allocate a 64-bit BAR if that is the only option PCI: endpoint: pci-epf-test: Remove superfluous code PCI: endpoint: pci-epf-test: Simplify pci_epf_test_alloc_space() loop PCI: endpoint: pci-epf-test: Simplify pci_epf_test_set_bar() loop PCI: endpoint: pci-epf-test: Clean up pci_epf_test_unbind() PCI: cadence: Set a 64-bit BAR if requested PCI: rockchip-ep: Set a 64-bit BAR if requested PCI: endpoint: Set prefetch when allocating memory for 64-bit BARs .../pci/controller/cadence/pcie-cadence-ep.c | 5 +- drivers/pci/controller/pcie-rockchip-ep.c | 2 +- drivers/pci/endpoint/functions/pci-epf-test.c | 67 +++++++------------ drivers/pci/endpoint/pci-epf-core.c | 10 ++- 4 files changed, 33 insertions(+), 51 deletions(-) -- 2.44.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel