From: Guilherme G. Piccoli <hidden> Date: 2017-10-25 15:28:04
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Signed-off-by: Guilherme G. Piccoli <redacted>
---
v2: changed name of the parameter [ben/mpe suggestion].
The patch was implemented against powerpc/next.
arch/powerpc/platforms/powernv/pci-ioda.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
From: Guilherme G. Piccoli <hidden> Date: 2017-11-09 21:34:06
On 10/25/2017 01:27 PM, Guilherme G. Piccoli wrote:
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Signed-off-by: Guilherme G. Piccoli <redacted>
---
v2: changed name of the parameter [ben/mpe suggestion].
The patch was implemented against powerpc/next.
Hi Michael/Ben...any thoughts about this one?
Thanks in advance!
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2017-11-13 04:25:09
"Guilherme G. Piccoli" [off-list ref] writes:
quoted hunk
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Signed-off-by: Guilherme G. Piccoli <redacted>
---
v2: changed name of the parameter [ben/mpe suggestion].
The patch was implemented against powerpc/next.
arch/powerpc/platforms/powernv/pci-ioda.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
@@ -110,6 +111,14 @@ static int __init iommu_setup(char *str)}early_param("iommu",iommu_setup);+staticint__initpci_reset_phbs_setup(char*str)+{+pci_reset_phbs=true;+return0;+}++early_param("pci_reset_phbs",pci_reset_phbs_setup);
Is there a reason you didn't make it a module parameter?
That is preferable IMHO because it is namespaced, which means we don't
need to worry about polluting the top-level parameter namespace.
cheers
On Thu, Oct 26, 2017 at 2:27 AM, Guilherme G. Piccoli
[off-list ref] wrote:
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Do we care to reset specific phbs or all of them? I guess all based on
your description.
Balbir Singh.
From: Guilherme G. Piccoli <hidden> Date: 2017-11-16 12:15:05
On 11/16/2017 01:49 AM, Balbir Singh wrote:
On Thu, Oct 26, 2017 at 2:27 AM, Guilherme G. Piccoli
[off-list ref] wrote:
quoted
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Do we care to reset specific phbs or all of them? I guess all based on
your description.
Exactly Balbir, it does reset all of them. We could add such
granularity, but I don't see much usability..
But if somebody feels it's useful, we can change...
Thanks!
On Thu, Nov 16, 2017 at 11:14 PM, Guilherme G. Piccoli
[off-list ref] wrote:
On 11/16/2017 01:49 AM, Balbir Singh wrote:
quoted
On Thu, Oct 26, 2017 at 2:27 AM, Guilherme G. Piccoli
[off-list ref] wrote:
quoted
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Do we care to reset specific phbs or all of them? I guess all based on
your description.
Exactly Balbir, it does reset all of them. We could add such
granularity, but I don't see much usability..
But if somebody feels it's useful, we can change...
OK.. makes sense, any reason why this can't be folded into reset_devices?
I guess we want reset_phbs to be independent of reset_devices
Balbir
From: Guilherme G. Piccoli <hidden> Date: 2017-12-06 19:28:49
On 11/21/2017 12:35 AM, Balbir Singh wrote:
On Thu, Nov 16, 2017 at 11:14 PM, Guilherme G. Piccoli
[off-list ref] wrote:
quoted
On 11/16/2017 01:49 AM, Balbir Singh wrote:
quoted
On Thu, Oct 26, 2017 at 2:27 AM, Guilherme G. Piccoli
[off-list ref] wrote:
quoted
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Do we care to reset specific phbs or all of them? I guess all based on
your description.
Exactly Balbir, it does reset all of them. We could add such
granularity, but I don't see much usability..
But if somebody feels it's useful, we can change...
OK.. makes sense, any reason why this can't be folded into reset_devices?
I guess we want reset_phbs to be independent of reset_devices
It was, in v1. But mpe asked it to be a powerpc specific parameter heheh
Cheers,
Guilherme
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2017-12-08 12:03:07
"Guilherme G. Piccoli" [off-list ref] writes:
On 11/21/2017 12:35 AM, Balbir Singh wrote:
quoted
On Thu, Nov 16, 2017 at 11:14 PM, Guilherme G. Piccoli
[off-list ref] wrote:
quoted
On 11/16/2017 01:49 AM, Balbir Singh wrote:
quoted
On Thu, Oct 26, 2017 at 2:27 AM, Guilherme G. Piccoli
[off-list ref] wrote:
quoted
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Do we care to reset specific phbs or all of them? I guess all based on
your description.
Exactly Balbir, it does reset all of them. We could add such
granularity, but I don't see much usability..
But if somebody feels it's useful, we can change...
OK.. makes sense, any reason why this can't be folded into reset_devices?
I guess we want reset_phbs to be independent of reset_devices
It was, in v1. But mpe asked it to be a powerpc specific parameter heheh
LOL. Turtles.
I still feel like we shouldn't be creating a generically named parameter
like this, though we have done it many times in the past.
Can we call it "ppc_reset_phbs". And then I'll merge it without further
quibbling, honest.
cheers
From: Guilherme G. Piccoli <hidden> Date: 2017-12-08 18:43:22
On 12/08/2017 10:03 AM, Michael Ellerman wrote:
"Guilherme G. Piccoli" [off-list ref] writes:
quoted
On 11/21/2017 12:35 AM, Balbir Singh wrote:
quoted
On Thu, Nov 16, 2017 at 11:14 PM, Guilherme G. Piccoli
[off-list ref] wrote:
quoted
On 11/16/2017 01:49 AM, Balbir Singh wrote:
quoted
On Thu, Oct 26, 2017 at 2:27 AM, Guilherme G. Piccoli
[off-list ref] wrote:
quoted
During a kdump kernel boot in PowerPC, we request a reset of the PHBs
to the FW. It makes sense, since if we are booting a kdump kernel it
means we had some trouble before and we cannot rely in the adapters'
health; they could be in a bad state, hence the reset is needed.
But this reset is useful not only in kdump - there are situations,
specially when debugging drivers, that we could break an adapter in
a way it requires such reset. One can tell to just go ahead and
reboot the machine, but happens that many times doing kexec is much
faster, and so preferable than a full power cycle.
This patch adds the pci_reset_phbs parameter to perform such reset
when desired by the user.
Do we care to reset specific phbs or all of them? I guess all based on
your description.
Exactly Balbir, it does reset all of them. We could add such
granularity, but I don't see much usability..
But if somebody feels it's useful, we can change...
OK.. makes sense, any reason why this can't be folded into reset_devices?
I guess we want reset_phbs to be independent of reset_devices
It was, in v1. But mpe asked it to be a powerpc specific parameter heheh
LOL. Turtles.
I still feel like we shouldn't be creating a generically named parameter
like this, though we have done it many times in the past.
Can we call it "ppc_reset_phbs". And then I'll merge it without further
quibbling, honest.