* [PATCH] uv/x2apic: update for change in pci bridge handling.
@ 2011-05-25 4:00 Dave Airlie
2011-06-09 3:43 ` Dave Airlie
0 siblings, 1 reply; 6+ messages in thread
From: Dave Airlie @ 2011-05-25 4:00 UTC (permalink / raw)
To: Ingo Molnar; +Cc: jbarnes, linux-kernel, dri-devel, Dave Airlie
From: Dave Airlie <airlied@redhat.com>
I forgot about the special uv handling code for this, so this
patch fixes it up.
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
arch/x86/kernel/apic/x2apic_uv_x.c | 8 ++++----
drivers/pci/pci.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index 33b10a0..185cd1e 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -599,14 +599,14 @@ late_initcall(uv_init_heartbeat);
/* Direct Legacy VGA I/O traffic to designated IOH */
int uv_set_vga_state(struct pci_dev *pdev, bool decode,
- unsigned int command_bits, bool change_bridge)
+ unsigned int command_bits, u32 flags)
{
int domain, bus, rc;
- PR_DEVEL("devfn %x decode %d cmd %x chg_brdg %d\n",
- pdev->devfn, decode, command_bits, change_bridge);
+ PR_DEVEL("devfn %x decode %d cmd %x flags %d\n",
+ pdev->devfn, decode, command_bits, flags);
- if (!change_bridge)
+ if (!(flags & PCI_VGA_STATE_CHANGE_BRIDGE))
return 0;
if ((command_bits & PCI_COMMAND_IO) == 0)
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index a339237..4528ee7 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -2862,11 +2862,11 @@ void __init pci_register_set_vga_state(arch_set_vga_state_t func)
}
static int pci_set_vga_state_arch(struct pci_dev *dev, bool decode,
- unsigned int command_bits, bool change_bridge)
+ unsigned int command_bits, u32 flags)
{
if (arch_set_vga_state)
return arch_set_vga_state(dev, decode, command_bits,
- change_bridge);
+ flags);
return 0;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] uv/x2apic: update for change in pci bridge handling.
2011-05-25 4:00 [PATCH] uv/x2apic: update for change in pci bridge handling Dave Airlie
@ 2011-06-09 3:43 ` Dave Airlie
2011-06-09 7:09 ` Ingo Molnar
2011-06-09 15:13 ` Jesse Barnes
0 siblings, 2 replies; 6+ messages in thread
From: Dave Airlie @ 2011-06-09 3:43 UTC (permalink / raw)
To: Ingo Molnar; +Cc: jbarnes, linux-kernel, Dave Airlie, steiner
On Wed, May 25, 2011 at 2:00 PM, Dave Airlie <airlied@gmail.com> wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> I forgot about the special uv handling code for this, so this
> patch fixes it up.
ping?
This fixes a warning and bug in Linus tree,
CC arch/x86/kernel/apic/x2apic_uv_x.o
/home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c: In
function ‘uv_system_init’:
/home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c:882:2:
warning: passing argument 1 of ‘pci_register_set_vga_state’ from
incompatible pointer type [enabled by default]
/home/airlied/git/linux-2.6/include/linux/pci.h:1094:13: note:
expected ‘arch_set_vga_state_t’ but argument is of type ‘int
(*)(struct pci_dev *, bool, unsigned int, bool)’
Dave.
>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> ---
> arch/x86/kernel/apic/x2apic_uv_x.c | 8 ++++----
> drivers/pci/pci.c | 4 ++--
> 2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
> index 33b10a0..185cd1e 100644
> --- a/arch/x86/kernel/apic/x2apic_uv_x.c
> +++ b/arch/x86/kernel/apic/x2apic_uv_x.c
> @@ -599,14 +599,14 @@ late_initcall(uv_init_heartbeat);
>
> /* Direct Legacy VGA I/O traffic to designated IOH */
> int uv_set_vga_state(struct pci_dev *pdev, bool decode,
> - unsigned int command_bits, bool change_bridge)
> + unsigned int command_bits, u32 flags)
> {
> int domain, bus, rc;
>
> - PR_DEVEL("devfn %x decode %d cmd %x chg_brdg %d\n",
> - pdev->devfn, decode, command_bits, change_bridge);
> + PR_DEVEL("devfn %x decode %d cmd %x flags %d\n",
> + pdev->devfn, decode, command_bits, flags);
>
> - if (!change_bridge)
> + if (!(flags & PCI_VGA_STATE_CHANGE_BRIDGE))
> return 0;
>
> if ((command_bits & PCI_COMMAND_IO) == 0)
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index a339237..4528ee7 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -2862,11 +2862,11 @@ void __init pci_register_set_vga_state(arch_set_vga_state_t func)
> }
>
> static int pci_set_vga_state_arch(struct pci_dev *dev, bool decode,
> - unsigned int command_bits, bool change_bridge)
> + unsigned int command_bits, u32 flags)
> {
> if (arch_set_vga_state)
> return arch_set_vga_state(dev, decode, command_bits,
> - change_bridge);
> + flags);
> return 0;
> }
>
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] uv/x2apic: update for change in pci bridge handling.
2011-06-09 3:43 ` Dave Airlie
@ 2011-06-09 7:09 ` Ingo Molnar
2011-06-09 10:32 ` Dave Airlie
2011-06-09 15:13 ` Jesse Barnes
1 sibling, 1 reply; 6+ messages in thread
From: Ingo Molnar @ 2011-06-09 7:09 UTC (permalink / raw)
To: Dave Airlie; +Cc: jbarnes, linux-kernel, Dave Airlie, steiner
* Dave Airlie <airlied@gmail.com> wrote:
> On Wed, May 25, 2011 at 2:00 PM, Dave Airlie <airlied@gmail.com> wrote:
> > From: Dave Airlie <airlied@redhat.com>
> >
> > I forgot about the special uv handling code for this, so this
> > patch fixes it up.
>
> ping?
>
> This fixes a warning and bug in Linus tree,
>
> CC arch/x86/kernel/apic/x2apic_uv_x.o
> /home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c: In
> function ‘uv_system_init’:
> /home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c:882:2:
> warning: passing argument 1 of ‘pci_register_set_vga_state’ from
> incompatible pointer type [enabled by default]
> /home/airlied/git/linux-2.6/include/linux/pci.h:1094:13: note:
> expected ‘arch_set_vga_state_t’ but argument is of type ‘int
> (*)(struct pci_dev *, bool, unsigned int, bool)’
>
>
> Dave.
>
> >
> > Signed-off-by: Dave Airlie <airlied@redhat.com>
> > ---
> > arch/x86/kernel/apic/x2apic_uv_x.c | 8 ++++----
> > drivers/pci/pci.c | 4 ++--
> > 2 files changed, 6 insertions(+), 6 deletions(-)
Bug introduced via the DRM tree? Then the fix should go via the DRM
tree or via the PCI tree i suspect.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] uv/x2apic: update for change in pci bridge handling.
2011-06-09 7:09 ` Ingo Molnar
@ 2011-06-09 10:32 ` Dave Airlie
2011-06-09 11:16 ` Ingo Molnar
0 siblings, 1 reply; 6+ messages in thread
From: Dave Airlie @ 2011-06-09 10:32 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Dave Airlie, jbarnes, linux-kernel, steiner
On Thu, 2011-06-09 at 09:09 +0200, Ingo Molnar wrote:
> * Dave Airlie <airlied@gmail.com> wrote:
>
> > On Wed, May 25, 2011 at 2:00 PM, Dave Airlie <airlied@gmail.com> wrote:
> > > From: Dave Airlie <airlied@redhat.com>
> > >
> > > I forgot about the special uv handling code for this, so this
> > > patch fixes it up.
> >
> > ping?
> >
> > This fixes a warning and bug in Linus tree,
> >
> > CC arch/x86/kernel/apic/x2apic_uv_x.o
> > /home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c: In
> > function ‘uv_system_init’:
> > /home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c:882:2:
> > warning: passing argument 1 of ‘pci_register_set_vga_state’ from
> > incompatible pointer type [enabled by default]
> > /home/airlied/git/linux-2.6/include/linux/pci.h:1094:13: note:
> > expected ‘arch_set_vga_state_t’ but argument is of type ‘int
> > (*)(struct pci_dev *, bool, unsigned int, bool)’
> >
> >
> > Dave.
> >
> > >
> > > Signed-off-by: Dave Airlie <airlied@redhat.com>
> > > ---
> > > arch/x86/kernel/apic/x2apic_uv_x.c | 8 ++++----
> > > drivers/pci/pci.c | 4 ++--
> > > 2 files changed, 6 insertions(+), 6 deletions(-)
>
> Bug introduced via the DRM tree? Then the fix should go via the DRM
> tree or via the PCI tree i suspect.
So I can take that as an ack for the x86 bit? :-)
I don't mind pushing it, just didn't want to step outside my box
Dave.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] uv/x2apic: update for change in pci bridge handling.
2011-06-09 10:32 ` Dave Airlie
@ 2011-06-09 11:16 ` Ingo Molnar
0 siblings, 0 replies; 6+ messages in thread
From: Ingo Molnar @ 2011-06-09 11:16 UTC (permalink / raw)
To: Dave Airlie; +Cc: Dave Airlie, jbarnes, linux-kernel, steiner
* Dave Airlie <airlied@redhat.com> wrote:
> On Thu, 2011-06-09 at 09:09 +0200, Ingo Molnar wrote:
> > * Dave Airlie <airlied@gmail.com> wrote:
> >
> > > On Wed, May 25, 2011 at 2:00 PM, Dave Airlie <airlied@gmail.com> wrote:
> > > > From: Dave Airlie <airlied@redhat.com>
> > > >
> > > > I forgot about the special uv handling code for this, so this
> > > > patch fixes it up.
> > >
> > > ping?
> > >
> > > This fixes a warning and bug in Linus tree,
> > >
> > > CC arch/x86/kernel/apic/x2apic_uv_x.o
> > > /home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c: In
> > > function ‘uv_system_init’:
> > > /home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c:882:2:
> > > warning: passing argument 1 of ‘pci_register_set_vga_state’ from
> > > incompatible pointer type [enabled by default]
> > > /home/airlied/git/linux-2.6/include/linux/pci.h:1094:13: note:
> > > expected ‘arch_set_vga_state_t’ but argument is of type ‘int
> > > (*)(struct pci_dev *, bool, unsigned int, bool)’
> > >
> > >
> > > Dave.
> > >
> > > >
> > > > Signed-off-by: Dave Airlie <airlied@redhat.com>
> > > > ---
> > > > arch/x86/kernel/apic/x2apic_uv_x.c | 8 ++++----
> > > > drivers/pci/pci.c | 4 ++--
> > > > 2 files changed, 6 insertions(+), 6 deletions(-)
> >
> > Bug introduced via the DRM tree? Then the fix should go via the DRM
> > tree or via the PCI tree i suspect.
>
> So I can take that as an ack for the x86 bit? :-)
Sure thing, you always have my implicit ack for obvious bug fixes,
especially if you were the one who broke things ;-)
[ I might criticise you if you do something ugly, but i generally do
that regardless of who maintains what. In any case, as long as you
don't do ugly fixes you should always be safe from me! ;-) ]
Thanks,
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] uv/x2apic: update for change in pci bridge handling.
2011-06-09 3:43 ` Dave Airlie
2011-06-09 7:09 ` Ingo Molnar
@ 2011-06-09 15:13 ` Jesse Barnes
1 sibling, 0 replies; 6+ messages in thread
From: Jesse Barnes @ 2011-06-09 15:13 UTC (permalink / raw)
To: Dave Airlie; +Cc: Ingo Molnar, linux-kernel, Dave Airlie, steiner
On Thu, 9 Jun 2011 13:43:52 +1000
Dave Airlie <airlied@gmail.com> wrote:
> On Wed, May 25, 2011 at 2:00 PM, Dave Airlie <airlied@gmail.com> wrote:
> > From: Dave Airlie <airlied@redhat.com>
> >
> > I forgot about the special uv handling code for this, so this
> > patch fixes it up.
>
> ping?
>
> This fixes a warning and bug in Linus tree,
>
> CC arch/x86/kernel/apic/x2apic_uv_x.o
> /home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c: In
> function ‘uv_system_init’:
> /home/airlied/git/linux-2.6/arch/x86/kernel/apic/x2apic_uv_x.c:882:2:
> warning: passing argument 1 of ‘pci_register_set_vga_state’ from
> incompatible pointer type [enabled by default]
> /home/airlied/git/linux-2.6/include/linux/pci.h:1094:13: note:
> expected ‘arch_set_vga_state_t’ but argument is of type ‘int
> (*)(struct pci_dev *, bool, unsigned int, bool)’
>
>
> Dave.
>
> >
> > Signed-off-by: Dave Airlie <airlied@redhat.com>
> > ---
> > arch/x86/kernel/apic/x2apic_uv_x.c | 8 ++++----
> > drivers/pci/pci.c | 4 ++--
> > 2 files changed, 6 insertions(+), 6 deletions(-)
> >
> > diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
> > index 33b10a0..185cd1e 100644
> > --- a/arch/x86/kernel/apic/x2apic_uv_x.c
> > +++ b/arch/x86/kernel/apic/x2apic_uv_x.c
> > @@ -599,14 +599,14 @@ late_initcall(uv_init_heartbeat);
> >
> > /* Direct Legacy VGA I/O traffic to designated IOH */
> > int uv_set_vga_state(struct pci_dev *pdev, bool decode,
> > - unsigned int command_bits, bool change_bridge)
> > + unsigned int command_bits, u32 flags)
> > {
> > int domain, bus, rc;
> >
> > - PR_DEVEL("devfn %x decode %d cmd %x chg_brdg %d\n",
> > - pdev->devfn, decode, command_bits, change_bridge);
> > + PR_DEVEL("devfn %x decode %d cmd %x flags %d\n",
> > + pdev->devfn, decode, command_bits, flags);
> >
> > - if (!change_bridge)
> > + if (!(flags & PCI_VGA_STATE_CHANGE_BRIDGE))
> > return 0;
> >
> > if ((command_bits & PCI_COMMAND_IO) == 0)
> > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> > index a339237..4528ee7 100644
> > --- a/drivers/pci/pci.c
> > +++ b/drivers/pci/pci.c
> > @@ -2862,11 +2862,11 @@ void __init pci_register_set_vga_state(arch_set_vga_state_t func)
> > }
> >
> > static int pci_set_vga_state_arch(struct pci_dev *dev, bool decode,
> > - unsigned int command_bits, bool change_bridge)
> > + unsigned int command_bits, u32 flags)
> > {
> > if (arch_set_vga_state)
> > return arch_set_vga_state(dev, decode, command_bits,
> > - change_bridge);
> > + flags);
> > return 0;
> > }
Yeah, this is fine with me, you can push it through your tree.
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
--
Jesse Barnes, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-06-09 15:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 4:00 [PATCH] uv/x2apic: update for change in pci bridge handling Dave Airlie
2011-06-09 3:43 ` Dave Airlie
2011-06-09 7:09 ` Ingo Molnar
2011-06-09 10:32 ` Dave Airlie
2011-06-09 11:16 ` Ingo Molnar
2011-06-09 15:13 ` Jesse Barnes
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.