linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Burton <paul.burton@mips.com>
To: YunQiang Su <syq@debian.org>
Cc: Paul Burton <pburton@wavecomp.com>,
	"linux-mips@vger.kernel.org" <linux-mips@vger.kernel.org>,
	"aaro.koskinen@iki.fi" <aaro.koskinen@iki.fi>,
	Yunqiang Su <ysu@wavecomp.com>
Subject: Re: [PATCH v2] Disable MSI also when pcie-octeon.pcie_disable on
Date: Thu, 10 Jan 2019 18:24:44 +0000	[thread overview]
Message-ID: <20190110182443.dic3trktlnn23ynn@pburton-laptop> (raw)
In-Reply-To: <20190108054510.7393-1-syq@debian.org>

Hi YunQiang,

On Tue, Jan 08, 2019 at 01:45:10PM +0800, YunQiang Su wrote:
> From: YunQiang Su <ysu@wavecomp.com>
> 
> Octeon has an boot-time option to disable pcie.
> 
> Since MSI depends on PCI-E, we should also disable MSI also with
> this options is on.

Does this fix a bug you're seeing? Or is it just intended to avoid
redundant work?

If it fixes a bug then I'll apply it to mips-fixes & copy stable,
otherwise I'll apply it to mips-next & not copy stable.

Thanks,
    Paul

> Signed-off-by: YunQiang Su <ysu@wavecomp.com>
> ---
>  arch/mips/pci/msi-octeon.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/mips/pci/msi-octeon.c b/arch/mips/pci/msi-octeon.c
> index 2a5bb849b..288b58b00 100644
> --- a/arch/mips/pci/msi-octeon.c
> +++ b/arch/mips/pci/msi-octeon.c
> @@ -369,7 +369,9 @@ int __init octeon_msi_initialize(void)
>  	int irq;
>  	struct irq_chip *msi;
>  
> -	if (octeon_dma_bar_type == OCTEON_DMA_BAR_TYPE_PCIE) {
> +	if (octeon_dma_bar_type == OCTEON_DMA_BAR_TYPE_INVALID) {
> +		return 0;
> +	} else if (octeon_dma_bar_type == OCTEON_DMA_BAR_TYPE_PCIE) {
>  		msi_rcv_reg[0] = CVMX_PEXP_NPEI_MSI_RCV0;
>  		msi_rcv_reg[1] = CVMX_PEXP_NPEI_MSI_RCV1;
>  		msi_rcv_reg[2] = CVMX_PEXP_NPEI_MSI_RCV2;
> -- 
> 2.20.1
> 

  parent reply	other threads:[~2019-01-10 18:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-08  5:45 [PATCH v2] Disable MSI also when pcie-octeon.pcie_disable on YunQiang Su
2019-01-08  7:41 ` YunQiang Su
2019-01-10 18:24 ` Paul Burton [this message]
2019-01-10 18:35   ` Yunqiang Su
2019-01-10 18:45     ` Paul Burton
2019-01-10 18:49       ` YunQiang Su
2019-01-10 18:55       ` YunQiang Su
2019-01-10 18:58 ` Paul Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190110182443.dic3trktlnn23ynn@pburton-laptop \
    --to=paul.burton@mips.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=linux-mips@vger.kernel.org \
    --cc=pburton@wavecomp.com \
    --cc=syq@debian.org \
    --cc=ysu@wavecomp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).