linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] export new __io{re,un}map_at() symbols
@ 2007-08-31  3:58 Olof Johansson
  2007-09-10 21:57 ` Paul Mackerras
  0 siblings, 1 reply; 5+ messages in thread
From: Olof Johansson @ 2007-08-31  3:58 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

Export new __io{re,un}map_at() symbols so modules can use them.


Signed-off-by: Olof Johansson <olof@lixom.net>


Index: mainline/arch/powerpc/mm/pgtable_64.c
===================================================================
--- mainline.orig/arch/powerpc/mm/pgtable_64.c
+++ mainline/arch/powerpc/mm/pgtable_64.c
@@ -228,5 +228,7 @@ void iounmap(volatile void __iomem *toke
 EXPORT_SYMBOL(ioremap);
 EXPORT_SYMBOL(ioremap_flags);
 EXPORT_SYMBOL(__ioremap);
+EXPORT_SYMBOL(__ioremap_at);
 EXPORT_SYMBOL(iounmap);
 EXPORT_SYMBOL(__iounmap);
+EXPORT_SYMBOL(__iounmap_at);

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] export new __io{re,un}map_at() symbols
  2007-08-31  3:58 [PATCH] export new __io{re,un}map_at() symbols Olof Johansson
@ 2007-09-10 21:57 ` Paul Mackerras
  2007-09-10 22:41   ` Olof Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Mackerras @ 2007-09-10 21:57 UTC (permalink / raw)
  To: Olof Johansson; +Cc: linuxppc-dev

Olof Johansson writes:

> Export new __io{re,un}map_at() symbols so modules can use them.

What module wants to use these?  How is it going to work out what
effective address to use?

Paul.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] export new __io{re,un}map_at() symbols
  2007-09-10 21:57 ` Paul Mackerras
@ 2007-09-10 22:41   ` Olof Johansson
  2007-09-10 23:10     ` Paul Mackerras
  0 siblings, 1 reply; 5+ messages in thread
From: Olof Johansson @ 2007-09-10 22:41 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

Hi,

On Tue, Sep 11, 2007 at 07:57:52AM +1000, Paul Mackerras wrote:
> Olof Johansson writes:
> 
> > Export new __io{re,un}map_at() symbols so modules can use them.
> 
> What module wants to use these?  How is it going to work out what
> effective address to use?

electra_cf uses it, that driver is currently in -mm including below
update to use benh's rewritten interfaces:

http://patchwork.ozlabs.org/linuxppc/patch?id=13237

It gets the effective addresses to use out of the device tree.


-Olof

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] export new __io{re,un}map_at() symbols
  2007-09-10 22:41   ` Olof Johansson
@ 2007-09-10 23:10     ` Paul Mackerras
  2007-09-10 23:34       ` Olof Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Mackerras @ 2007-09-10 23:10 UTC (permalink / raw)
  To: Olof Johansson; +Cc: linuxppc-dev

Olof Johansson writes:

> electra_cf uses it, that driver is currently in -mm including below
> update to use benh's rewritten interfaces:
> 
> http://patchwork.ozlabs.org/linuxppc/patch?id=13237
> 
> It gets the effective addresses to use out of the device tree.

Huh?  What does firmware (or the device tree) know about how the
kernel uses effective addresses?

Paul.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] export new __io{re,un}map_at() symbols
  2007-09-10 23:10     ` Paul Mackerras
@ 2007-09-10 23:34       ` Olof Johansson
  0 siblings, 0 replies; 5+ messages in thread
From: Olof Johansson @ 2007-09-10 23:34 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

On Tue, Sep 11, 2007 at 09:10:20AM +1000, Paul Mackerras wrote:
> Olof Johansson writes:
> 
> > electra_cf uses it, that driver is currently in -mm including below
> > update to use benh's rewritten interfaces:
> > 
> > http://patchwork.ozlabs.org/linuxppc/patch?id=13237
> > 
> > It gets the effective addresses to use out of the device tree.
> 
> Huh?  What does firmware (or the device tree) know about how the
> kernel uses effective addresses?

Oh, sorry, of course it doesn't (I was thinking of the physical address
but writing effective).

I get effective address by allocating it with __get_vm_area same way
the pseries pci hotplug does:

	area = __get_vm_area(cf->io_size, 0, PHB_IO_BASE, PHB_IO_END);
	if (area == NULL)
		return -ENOMEM;

	cf->io_virt = (void __iomem *)(area->addr);


-Olof

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-10 23:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-31  3:58 [PATCH] export new __io{re,un}map_at() symbols Olof Johansson
2007-09-10 21:57 ` Paul Mackerras
2007-09-10 22:41   ` Olof Johansson
2007-09-10 23:10     ` Paul Mackerras
2007-09-10 23:34       ` Olof Johansson

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).