Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1715766
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Bjorn Helgaas <helgaas@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/4] PCI:xilinx-nwl: Enable Root DMA |
| Date | Sat, 19 Aug 2017 23:20:01 +0200 |
| Message-ID | <ugjjX-6mL-13@gated-at.bofh.it> (permalink) |
| References | <ugjjX-6mL-3@gated-at.bofh.it> <ugjjX-6mL-15@gated-at.bofh.it> |
| X-Original-To | Ravi Shankar Jonnalagadda <venkata.ravi.jonnalagadda@xilinx.com> |
| Dmarc-Filter | OpenDMARC Filter v1.3.2 mail.kernel.org BBF992190D |
| Authentication-Results | mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org |
| Authentication-Results | mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 71 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | bhelgaas@google.com, michal.simek@xilinx.com, soren.brinkmann@xilinx.com, lorenzo.pieralisi@arm.com, bharat.kumar.gogada@xilinx.com, vjonnal@xilinx.com, paul.gortmaker@windriver.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com, vinod.koul@intel.com, dmaengine@vger.kernel.org |
| X-Original-Date | Sat, 19 Aug 2017 16:15:48 -0500 |
| X-Original-Message-ID | <20170819211548.GU28977@bhelgaas-glaptop.roam.corp.google.com> |
| X-Original-References | <1502190739-13474-1-git-send-email-vjonnal@xilinx.com> <1502190739-13474-2-git-send-email-vjonnal@xilinx.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1715766 |
Show key headers only | View raw
On Tue, Aug 08, 2017 at 04:42:16PM +0530, Ravi Shankar Jonnalagadda wrote: Please update the subject line to match previous changes to this file, e.g. (note spacing), PCI: xilinx-nwl: Enable Root DMA > Enabling Root DMA interrupts s/Enabling/Enable/ (also in code comments) > Adding Root DMA translations to bridge for Register Access s/Adding/Add/ > Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com> This should have an ack from Michal, but as far as I'm concerned: Acked-by: Bjorn Helgaas <bhelgaas@google.com> Since the bulk of this series is in drivers/dma, I assume Dan or Vinod will take care of it. > --- > drivers/pci/host/pcie-xilinx-nwl.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/drivers/pci/host/pcie-xilinx-nwl.c b/drivers/pci/host/pcie-xilinx-nwl.c > index eec641a..5766582 100644 > --- a/drivers/pci/host/pcie-xilinx-nwl.c > +++ b/drivers/pci/host/pcie-xilinx-nwl.c > @@ -39,6 +39,11 @@ > #define E_ECAM_CONTROL 0x00000228 > #define E_ECAM_BASE_LO 0x00000230 > #define E_ECAM_BASE_HI 0x00000234 > +#define E_DREG_CTRL 0x00000288 > +#define E_DREG_BASE_LO 0x00000290 > + > +#define DREG_DMA_EN BIT(0) > +#define DREG_DMA_BASE_LO 0xFD0F0000 > > /* Ingress - address translations */ > #define I_MSII_CAPABILITIES 0x00000300 > @@ -57,6 +62,10 @@ > #define MSGF_MSI_STATUS_HI 0x00000444 > #define MSGF_MSI_MASK_LO 0x00000448 > #define MSGF_MSI_MASK_HI 0x0000044C > +/* Root DMA Interrupt register */ > +#define MSGF_DMA_MASK 0x00000464 > + > +#define MSGF_INTR_EN BIT(0) > > /* Msg filter mask bits */ > #define CFG_ENABLE_PM_MSG_FWD BIT(1) > @@ -766,6 +775,12 @@ static int nwl_pcie_bridge_init(struct nwl_pcie *pcie) > nwl_bridge_writel(pcie, nwl_bridge_readl(pcie, MSGF_LEG_STATUS) & > MSGF_LEG_SR_MASKALL, MSGF_LEG_STATUS); > > + /* Enabling DREG translations */ > + nwl_bridge_writel(pcie, DREG_DMA_EN, E_DREG_CTRL); > + nwl_bridge_writel(pcie, DREG_DMA_BASE_LO, E_DREG_BASE_LO); > + /* Enabling Root DMA interrupts */ > + nwl_bridge_writel(pcie, MSGF_INTR_EN, MSGF_DMA_MASK); > + > /* Enable all legacy interrupts */ > nwl_bridge_writel(pcie, MSGF_LEG_SR_MASKALL, MSGF_LEG_MASK); > > -- > 2.1.1 >
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH 1/4] PCI:xilinx-nwl: Enable Root DMA Bjorn Helgaas <helgaas@kernel.org> - 2017-08-19 23:20 +0200
csiph-web