From: "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
paulus@samba.org, maurosr@linux.vnet.ibm.com
Subject: Re: [PATCH] powerpc/powernv: Enable reset_devices parameter to issue a PHB reset
Date: Sun, 15 Oct 2017 19:51:59 -0200 [thread overview]
Message-ID: <98200d15-41f9-e376-b870-472f78971735@linux.vnet.ibm.com> (raw)
In-Reply-To: <1507972420.25065.270.camel@kernel.crashing.org>
On 10/14/2017 06:13 AM, Benjamin Herrenschmidt wrote:
> No, he's saying this is useful for the developers when debugging the
> kernel driver (or for asking users to "test" something as part of
> debugging a driver problem).
>
> It's common to have various command line options affecting PCIe
> behaviour. I don't see a fundamental problem with this one.
Thanks Ben, very well explained.
>
> One could argue in fact that we should always PERST everything, the
> main reason for not doing so is that on "normal" boot, OPAL has already
> done it and it would slow the boot process down.
>
> My only objection here is the actual name of the argument. We've had a
> number of pci options so far, it makes sense to make sure we still have
> "pci" in the name.
I just wanted to take advantage of the already existing argument,
reset_devices. And..in fact, the PERST is a reset right?
But if you prefer, we can change it - pci_force_reset?
Suggestions are welcome.
>
> Also having the driver do a "reset" is not always simple, we don't
> always have full control of PERST on a per-device basis. The patch
> proposed will PERST top level PHBs which will propagate as hot reset
> down switches, not 100% PERST but still useful.
>
Exactly, this reset happens on early arch stage of PCI initialization,
not trivial to drivers perform it.
Anyway, let me know if you want a V2 with improvements or to drop it..I
still see use cases for this.
Thanks,
Guilherme
> Cheers,
> Ben.
>
next prev parent reply other threads:[~2017-10-15 21:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-12 22:21 [PATCH] powerpc/powernv: Enable reset_devices parameter to issue a PHB reset Guilherme G. Piccoli
2017-10-13 8:37 ` Michael Ellerman
2017-10-13 13:02 ` Guilherme G. Piccoli
2017-10-14 9:13 ` Benjamin Herrenschmidt
2017-10-15 21:51 ` Guilherme G. Piccoli [this message]
2017-10-25 15:30 ` Guilherme G. Piccoli
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=98200d15-41f9-e376-b870-472f78971735@linux.vnet.ibm.com \
--to=gpiccoli@linux.vnet.ibm.com \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maurosr@linux.vnet.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
/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).