diff mbox

[3/3] PCI: remove printks about disabled bridge windows

Message ID 20110614190440.8280.49580.stgit@bhelgaas.mtv.corp.google.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Bjorn Helgaas June 14, 2011, 7:04 p.m. UTC
I don't think there's enough value in the fact of a bridge window
being disabled to justify cluttering the dmesg log with it.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/pci/probe.c     |   12 ------------
 drivers/pci/setup-bus.c |    3 ---
 2 files changed, 0 insertions(+), 15 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Yinghai Lu June 14, 2011, 11:45 p.m. UTC | #1
On Tue, Jun 14, 2011 at 12:04 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
> I don't think there's enough value in the fact of a bridge window
> being disabled to justify cluttering the dmesg log with it.
>
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>  drivers/pci/probe.c     |   12 ------------
>  drivers/pci/setup-bus.c |    3 ---
>  2 files changed, 0 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
> index d1181cd..362ec08 100644
> --- a/drivers/pci/probe.c
> +++ b/drivers/pci/probe.c
> @@ -288,10 +288,6 @@ static void __devinit pci_read_bridge_io(struct pci_bus *child)
>                if (!res->end)
>                        res->end = limit + 0xfff;
>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
> -       } else {
> -               dev_printk(KERN_DEBUG, &dev->dev,
> -                        "  bridge window [io  %#06lx-%#06lx] (disabled)\n",
> -                                base, limit);
>        }
>  }
>
> @@ -312,10 +308,6 @@ static void __devinit pci_read_bridge_mmio(struct pci_bus *child)
>                res->start = base;
>                res->end = limit + 0xfffff;
>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
> -       } else {
> -               dev_printk(KERN_DEBUG, &dev->dev,
> -                       "  bridge window [mem %#010lx-%#010lx] (disabled)\n",
> -                                        base, limit + 0xfffff);
>        }
>  }
>
> @@ -363,10 +355,6 @@ static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child)
>                res->start = base;
>                res->end = limit + 0xfffff;
>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
> -       } else {
> -               dev_printk(KERN_DEBUG, &dev->dev,
> -                    "  bridge window [mem %#010lx-%#010lx pref] (disabled)\n",
> -                                        base, limit + 0xfffff);

No, We need to know what vaule BIOS write to those registers even they
are disabled.

>        }
>  }
>
> diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
> index 1e9e5a5..2a3f0a8 100644
> --- a/drivers/pci/setup-bus.c
> +++ b/drivers/pci/setup-bus.c
> @@ -329,7 +329,6 @@ static void pci_setup_bridge_io(struct pci_bus *bus)
>                /* Clear upper 16 bits of I/O base/limit. */
>                io_upper16 = 0;
>                l = 0x00f0;
> -               dev_info(&bridge->dev, "  bridge window [io  disabled]\n");
>        }
>        /* Temporarily disable the I/O range before updating PCI_IO_BASE. */
>        pci_write_config_dword(bridge, PCI_IO_BASE_UPPER16, 0x0000ffff);
> @@ -355,7 +354,6 @@ static void pci_setup_bridge_mmio(struct pci_bus *bus)
>                dev_info(&bridge->dev, "  bridge window %pR\n", res);
>        } else {
>                l = 0x0000fff0;
> -               dev_info(&bridge->dev, "  bridge window [mem disabled]\n");
>        }
>        pci_write_config_dword(bridge, PCI_MEMORY_BASE, l);
>  }
> @@ -386,7 +384,6 @@ static void pci_setup_bridge_mmio_pref(struct pci_bus *bus)
>                dev_info(&bridge->dev, "  bridge window %pR\n", res);
>        } else {
>                l = 0x0000fff0;
> -               dev_info(&bridge->dev, "  bridge window [mem pref disabled]\n");
>        }
>        pci_write_config_dword(bridge, PCI_PREF_MEMORY_BASE, l);
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Bjorn Helgaas June 14, 2011, 11:54 p.m. UTC | #2
On Tue, Jun 14, 2011 at 4:45 PM, Yinghai Lu <yinghai@kernel.org> wrote:
> On Tue, Jun 14, 2011 at 12:04 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>> I don't think there's enough value in the fact of a bridge window
>> being disabled to justify cluttering the dmesg log with it.
>>
>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>> ---
>>  drivers/pci/probe.c     |   12 ------------
>>  drivers/pci/setup-bus.c |    3 ---
>>  2 files changed, 0 insertions(+), 15 deletions(-)
>>
>> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
>> index d1181cd..362ec08 100644
>> --- a/drivers/pci/probe.c
>> +++ b/drivers/pci/probe.c
>> @@ -288,10 +288,6 @@ static void __devinit pci_read_bridge_io(struct pci_bus *child)
>>                if (!res->end)
>>                        res->end = limit + 0xfff;
>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>> -       } else {
>> -               dev_printk(KERN_DEBUG, &dev->dev,
>> -                        "  bridge window [io  %#06lx-%#06lx] (disabled)\n",
>> -                                base, limit);
>>        }
>>  }
>>
>> @@ -312,10 +308,6 @@ static void __devinit pci_read_bridge_mmio(struct pci_bus *child)
>>                res->start = base;
>>                res->end = limit + 0xfffff;
>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>> -       } else {
>> -               dev_printk(KERN_DEBUG, &dev->dev,
>> -                       "  bridge window [mem %#010lx-%#010lx] (disabled)\n",
>> -                                        base, limit + 0xfffff);
>>        }
>>  }
>>
>> @@ -363,10 +355,6 @@ static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child)
>>                res->start = base;
>>                res->end = limit + 0xfffff;
>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>> -       } else {
>> -               dev_printk(KERN_DEBUG, &dev->dev,
>> -                    "  bridge window [mem %#010lx-%#010lx pref] (disabled)\n",
>> -                                        base, limit + 0xfffff);
>
> No, We need to know what vaule BIOS write to those registers even they
> are disabled.

What do we learn from that?

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Yinghai Lu June 15, 2011, midnight UTC | #3
On 06/14/2011 04:54 PM, Bjorn Helgaas wrote:
> On Tue, Jun 14, 2011 at 4:45 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>> On Tue, Jun 14, 2011 at 12:04 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>>> I don't think there's enough value in the fact of a bridge window
>>> being disabled to justify cluttering the dmesg log with it.
>>>
>>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>> ---
>>>  drivers/pci/probe.c     |   12 ------------
>>>  drivers/pci/setup-bus.c |    3 ---
>>>  2 files changed, 0 insertions(+), 15 deletions(-)
>>>
>>> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
>>> index d1181cd..362ec08 100644
>>> --- a/drivers/pci/probe.c
>>> +++ b/drivers/pci/probe.c
>>> @@ -288,10 +288,6 @@ static void __devinit pci_read_bridge_io(struct pci_bus *child)
>>>                if (!res->end)
>>>                        res->end = limit + 0xfff;
>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>> -       } else {
>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>> -                        "  bridge window [io  %#06lx-%#06lx] (disabled)\n",
>>> -                                base, limit);
>>>        }
>>>  }
>>>
>>> @@ -312,10 +308,6 @@ static void __devinit pci_read_bridge_mmio(struct pci_bus *child)
>>>                res->start = base;
>>>                res->end = limit + 0xfffff;
>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>> -       } else {
>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>> -                       "  bridge window [mem %#010lx-%#010lx] (disabled)\n",
>>> -                                        base, limit + 0xfffff);
>>>        }
>>>  }
>>>
>>> @@ -363,10 +355,6 @@ static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child)
>>>                res->start = base;
>>>                res->end = limit + 0xfffff;
>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>> -       } else {
>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>> -                    "  bridge window [mem %#010lx-%#010lx pref] (disabled)\n",
>>> -                                        base, limit + 0xfffff);
>>
>> No, We need to know what vaule BIOS write to those registers even they
>> are disabled.
> 
> What do we learn from that?

printout the wrong value, so bios guy could fix them.


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Bjorn Helgaas June 15, 2011, 12:07 a.m. UTC | #4
On Tue, Jun 14, 2011 at 5:00 PM, Yinghai Lu <yinghai@kernel.org> wrote:
> On 06/14/2011 04:54 PM, Bjorn Helgaas wrote:
>> On Tue, Jun 14, 2011 at 4:45 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>>> On Tue, Jun 14, 2011 at 12:04 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>>>> I don't think there's enough value in the fact of a bridge window
>>>> being disabled to justify cluttering the dmesg log with it.
>>>>
>>>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>>> ---
>>>>  drivers/pci/probe.c     |   12 ------------
>>>>  drivers/pci/setup-bus.c |    3 ---
>>>>  2 files changed, 0 insertions(+), 15 deletions(-)
>>>>
>>>> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
>>>> index d1181cd..362ec08 100644
>>>> --- a/drivers/pci/probe.c
>>>> +++ b/drivers/pci/probe.c
>>>> @@ -288,10 +288,6 @@ static void __devinit pci_read_bridge_io(struct pci_bus *child)
>>>>                if (!res->end)
>>>>                        res->end = limit + 0xfff;
>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>> -       } else {
>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>> -                        "  bridge window [io  %#06lx-%#06lx] (disabled)\n",
>>>> -                                base, limit);
>>>>        }
>>>>  }
>>>>
>>>> @@ -312,10 +308,6 @@ static void __devinit pci_read_bridge_mmio(struct pci_bus *child)
>>>>                res->start = base;
>>>>                res->end = limit + 0xfffff;
>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>> -       } else {
>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>> -                       "  bridge window [mem %#010lx-%#010lx] (disabled)\n",
>>>> -                                        base, limit + 0xfffff);
>>>>        }
>>>>  }
>>>>
>>>> @@ -363,10 +355,6 @@ static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child)
>>>>                res->start = base;
>>>>                res->end = limit + 0xfffff;
>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>> -       } else {
>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>> -                    "  bridge window [mem %#010lx-%#010lx pref] (disabled)\n",
>>>> -                                        base, limit + 0xfffff);
>>>
>>> No, We need to know what vaule BIOS write to those registers even they
>>> are disabled.
>>
>> What do we learn from that?
>
> printout the wrong value, so bios guy could fix them.

If the window is disabled, do BIOS guys really need us to tell them
the incorrect values?  If they do need the values from the registers,
would the setpci utility be enough to collect them?

Is it worth cluttering the dmesg logs of every user in order to help
debug the BIOS?
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Bjorn Helgaas June 20, 2011, 6:37 p.m. UTC | #5
On Tue, Jun 14, 2011 at 6:07 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
> On Tue, Jun 14, 2011 at 5:00 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>> On 06/14/2011 04:54 PM, Bjorn Helgaas wrote:
>>> On Tue, Jun 14, 2011 at 4:45 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>>>> On Tue, Jun 14, 2011 at 12:04 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>>>>> I don't think there's enough value in the fact of a bridge window
>>>>> being disabled to justify cluttering the dmesg log with it.
>>>>>
>>>>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>>>> ---
>>>>>  drivers/pci/probe.c     |   12 ------------
>>>>>  drivers/pci/setup-bus.c |    3 ---
>>>>>  2 files changed, 0 insertions(+), 15 deletions(-)
>>>>>
>>>>> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
>>>>> index d1181cd..362ec08 100644
>>>>> --- a/drivers/pci/probe.c
>>>>> +++ b/drivers/pci/probe.c
>>>>> @@ -288,10 +288,6 @@ static void __devinit pci_read_bridge_io(struct pci_bus *child)
>>>>>                if (!res->end)
>>>>>                        res->end = limit + 0xfff;
>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>> -       } else {
>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>> -                        "  bridge window [io  %#06lx-%#06lx] (disabled)\n",
>>>>> -                                base, limit);
>>>>>        }
>>>>>  }
>>>>>
>>>>> @@ -312,10 +308,6 @@ static void __devinit pci_read_bridge_mmio(struct pci_bus *child)
>>>>>                res->start = base;
>>>>>                res->end = limit + 0xfffff;
>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>> -       } else {
>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>> -                       "  bridge window [mem %#010lx-%#010lx] (disabled)\n",
>>>>> -                                        base, limit + 0xfffff);
>>>>>        }
>>>>>  }
>>>>>
>>>>> @@ -363,10 +355,6 @@ static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child)
>>>>>                res->start = base;
>>>>>                res->end = limit + 0xfffff;
>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>> -       } else {
>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>> -                    "  bridge window [mem %#010lx-%#010lx pref] (disabled)\n",
>>>>> -                                        base, limit + 0xfffff);
>>>>
>>>> No, We need to know what vaule BIOS write to those registers even they
>>>> are disabled.
>>>
>>> What do we learn from that?
>>
>> printout the wrong value, so bios guy could fix them.
>
> If the window is disabled, do BIOS guys really need us to tell them
> the incorrect values?  If they do need the values from the registers,
> would the setpci utility be enough to collect them?
>
> Is it worth cluttering the dmesg logs of every user in order to help
> debug the BIOS?

Ping, Yinghai, I'm not sure where we are with this.

Can you provide any more details about why we need these kernel
printks to help fix BIOS issues?

My impression is that 99.99% of the people who see these printks have
shipping machines, where the BIOS has already been released, and
there's really no need to see the actual values of a disabled window.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Yinghai Lu June 20, 2011, 6:59 p.m. UTC | #6
On 06/20/2011 11:37 AM, Bjorn Helgaas wrote:
> On Tue, Jun 14, 2011 at 6:07 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>> On Tue, Jun 14, 2011 at 5:00 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>>> On 06/14/2011 04:54 PM, Bjorn Helgaas wrote:
>>>> On Tue, Jun 14, 2011 at 4:45 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>>>>> On Tue, Jun 14, 2011 at 12:04 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>>>>>> I don't think there's enough value in the fact of a bridge window
>>>>>> being disabled to justify cluttering the dmesg log with it.
>>>>>>
>>>>>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>>>>> ---
>>>>>>  drivers/pci/probe.c     |   12 ------------
>>>>>>  drivers/pci/setup-bus.c |    3 ---
>>>>>>  2 files changed, 0 insertions(+), 15 deletions(-)
>>>>>>
>>>>>> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
>>>>>> index d1181cd..362ec08 100644
>>>>>> --- a/drivers/pci/probe.c
>>>>>> +++ b/drivers/pci/probe.c
>>>>>> @@ -288,10 +288,6 @@ static void __devinit pci_read_bridge_io(struct pci_bus *child)
>>>>>>                if (!res->end)
>>>>>>                        res->end = limit + 0xfff;
>>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>>> -       } else {
>>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>>> -                        "  bridge window [io  %#06lx-%#06lx] (disabled)\n",
>>>>>> -                                base, limit);
>>>>>>        }
>>>>>>  }
>>>>>>
>>>>>> @@ -312,10 +308,6 @@ static void __devinit pci_read_bridge_mmio(struct pci_bus *child)
>>>>>>                res->start = base;
>>>>>>                res->end = limit + 0xfffff;
>>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>>> -       } else {
>>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>>> -                       "  bridge window [mem %#010lx-%#010lx] (disabled)\n",
>>>>>> -                                        base, limit + 0xfffff);
>>>>>>        }
>>>>>>  }
>>>>>>
>>>>>> @@ -363,10 +355,6 @@ static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child)
>>>>>>                res->start = base;
>>>>>>                res->end = limit + 0xfffff;
>>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>>> -       } else {
>>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>>> -                    "  bridge window [mem %#010lx-%#010lx pref] (disabled)\n",
>>>>>> -                                        base, limit + 0xfffff);
>>>>>
>>>>> No, We need to know what vaule BIOS write to those registers even they
>>>>> are disabled.
>>>>
>>>> What do we learn from that?
>>>
>>> printout the wrong value, so bios guy could fix them.
>>
>> If the window is disabled, do BIOS guys really need us to tell them
>> the incorrect values?  If they do need the values from the registers,
>> would the setpci utility be enough to collect them?
>>
>> Is it worth cluttering the dmesg logs of every user in order to help
>> debug the BIOS?
> 
> Ping, Yinghai, I'm not sure where we are with this.
> 
> Can you provide any more details about why we need these kernel
> printks to help fix BIOS issues?
> 
> My impression is that 99.99% of the people who see these printks have
> shipping machines, where the BIOS has already been released, and
> there's really no need to see the actual values of a disabled window.

so released BIOS have no problem? the buggy BIOS float around everywhere, some is never get tested with linux.

print out initial setting from BIOS in Linux should be very useful for root cause problem. aka to prove is not linux modify those register to cause problem.

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Bjorn Helgaas June 20, 2011, 7:12 p.m. UTC | #7
On Mon, Jun 20, 2011 at 12:59 PM, Yinghai Lu <yinghai@kernel.org> wrote:
> On 06/20/2011 11:37 AM, Bjorn Helgaas wrote:
>> On Tue, Jun 14, 2011 at 6:07 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>>> On Tue, Jun 14, 2011 at 5:00 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>>>> On 06/14/2011 04:54 PM, Bjorn Helgaas wrote:
>>>>> On Tue, Jun 14, 2011 at 4:45 PM, Yinghai Lu <yinghai@kernel.org> wrote:
>>>>>> On Tue, Jun 14, 2011 at 12:04 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>>>>>>> I don't think there's enough value in the fact of a bridge window
>>>>>>> being disabled to justify cluttering the dmesg log with it.
>>>>>>>
>>>>>>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>>>>>> ---
>>>>>>>  drivers/pci/probe.c     |   12 ------------
>>>>>>>  drivers/pci/setup-bus.c |    3 ---
>>>>>>>  2 files changed, 0 insertions(+), 15 deletions(-)
>>>>>>>
>>>>>>> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
>>>>>>> index d1181cd..362ec08 100644
>>>>>>> --- a/drivers/pci/probe.c
>>>>>>> +++ b/drivers/pci/probe.c
>>>>>>> @@ -288,10 +288,6 @@ static void __devinit pci_read_bridge_io(struct pci_bus *child)
>>>>>>>                if (!res->end)
>>>>>>>                        res->end = limit + 0xfff;
>>>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>>>> -       } else {
>>>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>>>> -                        "  bridge window [io  %#06lx-%#06lx] (disabled)\n",
>>>>>>> -                                base, limit);
>>>>>>>        }
>>>>>>>  }
>>>>>>>
>>>>>>> @@ -312,10 +308,6 @@ static void __devinit pci_read_bridge_mmio(struct pci_bus *child)
>>>>>>>                res->start = base;
>>>>>>>                res->end = limit + 0xfffff;
>>>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>>>> -       } else {
>>>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>>>> -                       "  bridge window [mem %#010lx-%#010lx] (disabled)\n",
>>>>>>> -                                        base, limit + 0xfffff);
>>>>>>>        }
>>>>>>>  }
>>>>>>>
>>>>>>> @@ -363,10 +355,6 @@ static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child)
>>>>>>>                res->start = base;
>>>>>>>                res->end = limit + 0xfffff;
>>>>>>>                dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
>>>>>>> -       } else {
>>>>>>> -               dev_printk(KERN_DEBUG, &dev->dev,
>>>>>>> -                    "  bridge window [mem %#010lx-%#010lx pref] (disabled)\n",
>>>>>>> -                                        base, limit + 0xfffff);
>>>>>>
>>>>>> No, We need to know what vaule BIOS write to those registers even they
>>>>>> are disabled.
>>>>>
>>>>> What do we learn from that?
>>>>
>>>> printout the wrong value, so bios guy could fix them.
>>>
>>> If the window is disabled, do BIOS guys really need us to tell them
>>> the incorrect values?  If they do need the values from the registers,
>>> would the setpci utility be enough to collect them?
>>>
>>> Is it worth cluttering the dmesg logs of every user in order to help
>>> debug the BIOS?
>>
>> Ping, Yinghai, I'm not sure where we are with this.
>>
>> Can you provide any more details about why we need these kernel
>> printks to help fix BIOS issues?
>>
>> My impression is that 99.99% of the people who see these printks have
>> shipping machines, where the BIOS has already been released, and
>> there's really no need to see the actual values of a disabled window.
>
> so released BIOS have no problem? the buggy BIOS float around everywhere, some is never get tested with linux.
>
> print out initial setting from BIOS in Linux should be very useful for root cause problem. aka to prove is not linux modify those register to cause problem.

Well, Linux already prints a note whenever it finds an enabled bridge
window and when it modifies a bridge window, so we can always tell
what Linux found and and what it did.  The only information this patch
removes is the actual *values* that caused the window to be disabled,
and I'm dubious that those are really useful.  If we do need them, I
think we could get them via setpci.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index d1181cd..362ec08 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -288,10 +288,6 @@  static void __devinit pci_read_bridge_io(struct pci_bus *child)
 		if (!res->end)
 			res->end = limit + 0xfff;
 		dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
-	} else {
-		dev_printk(KERN_DEBUG, &dev->dev,
-			 "  bridge window [io  %#06lx-%#06lx] (disabled)\n",
-				 base, limit);
 	}
 }
 
@@ -312,10 +308,6 @@  static void __devinit pci_read_bridge_mmio(struct pci_bus *child)
 		res->start = base;
 		res->end = limit + 0xfffff;
 		dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
-	} else {
-		dev_printk(KERN_DEBUG, &dev->dev,
-			"  bridge window [mem %#010lx-%#010lx] (disabled)\n",
-					 base, limit + 0xfffff);
 	}
 }
 
@@ -363,10 +355,6 @@  static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child)
 		res->start = base;
 		res->end = limit + 0xfffff;
 		dev_printk(KERN_DEBUG, &dev->dev, "  bridge window %pR\n", res);
-	} else {
-		dev_printk(KERN_DEBUG, &dev->dev,
-		     "  bridge window [mem %#010lx-%#010lx pref] (disabled)\n",
-					 base, limit + 0xfffff);
 	}
 }
 
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index 1e9e5a5..2a3f0a8 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -329,7 +329,6 @@  static void pci_setup_bridge_io(struct pci_bus *bus)
 		/* Clear upper 16 bits of I/O base/limit. */
 		io_upper16 = 0;
 		l = 0x00f0;
-		dev_info(&bridge->dev, "  bridge window [io  disabled]\n");
 	}
 	/* Temporarily disable the I/O range before updating PCI_IO_BASE. */
 	pci_write_config_dword(bridge, PCI_IO_BASE_UPPER16, 0x0000ffff);
@@ -355,7 +354,6 @@  static void pci_setup_bridge_mmio(struct pci_bus *bus)
 		dev_info(&bridge->dev, "  bridge window %pR\n", res);
 	} else {
 		l = 0x0000fff0;
-		dev_info(&bridge->dev, "  bridge window [mem disabled]\n");
 	}
 	pci_write_config_dword(bridge, PCI_MEMORY_BASE, l);
 }
@@ -386,7 +384,6 @@  static void pci_setup_bridge_mmio_pref(struct pci_bus *bus)
 		dev_info(&bridge->dev, "  bridge window %pR\n", res);
 	} else {
 		l = 0x0000fff0;
-		dev_info(&bridge->dev, "  bridge window [mem pref disabled]\n");
 	}
 	pci_write_config_dword(bridge, PCI_PREF_MEMORY_BASE, l);