mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Mark sparc and sparc64 as not having virt_to_bus
@ 2007-07-18  4:41 Stephen Rothwell
  2007-07-18  7:09 ` David Miller
  2007-07-18 14:09 ` Mark Fortescue
  0 siblings, 2 replies; 4+ messages in thread
From: Stephen Rothwell @ 2007-07-18  4:41 UTC (permalink / raw)
  To: David S. Miller, wli; +Cc: LKML, Andrew Morton, sparclinux


Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/sparc/Kconfig       |    3 +++
 arch/sparc64/Kconfig     |    3 +++
 include/asm-sparc64/io.h |    5 -----
 3 files changed, 6 insertions(+), 5 deletions(-)

This is part of a rash attempt to make allmodconfig builds work for sparc
and sparc64 :-)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 73df711..603d83a 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -21,6 +21,9 @@ config GENERIC_ISA_DMA
 	bool
 	default y
 
+config ARCH_NO_VIRT_TO_BUS
+	def_bool y
+
 source "init/Kconfig"
 
 menu "General machine setup"
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig
index b84b6af..df6ee71 100644
--- a/arch/sparc64/Kconfig
+++ b/arch/sparc64/Kconfig
@@ -62,6 +62,9 @@ config AUDIT_ARCH
 	bool
 	default y
 
+config ARCH_NO_VIRT_TO_BUS
+	def_bool y
+
 choice
 	prompt "Kernel page size"
 	default SPARC64_PAGE_SIZE_8KB
diff --git a/include/asm-sparc64/io.h b/include/asm-sparc64/io.h
index ad595b6..9565a89 100644
--- a/include/asm-sparc64/io.h
+++ b/include/asm-sparc64/io.h
@@ -14,11 +14,6 @@
 #define __SLOW_DOWN_IO	do { } while (0)
 #define SLOW_DOWN_IO	do { } while (0)
 
-extern unsigned long virt_to_bus_not_defined_use_pci_map(volatile void *addr);
-#define virt_to_bus virt_to_bus_not_defined_use_pci_map
-extern unsigned long bus_to_virt_not_defined_use_pci_map(volatile void *addr);
-#define bus_to_virt bus_to_virt_not_defined_use_pci_map
-
 /* BIO layer definitions. */
 extern unsigned long kern_base, kern_size;
 #define page_to_phys(page)	(page_to_pfn(page) << PAGE_SHIFT)
-- 
1.5.2.3


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

* Re: [PATCH] Mark sparc and sparc64 as not having virt_to_bus
  2007-07-18  4:41 [PATCH] Mark sparc and sparc64 as not having virt_to_bus Stephen Rothwell
@ 2007-07-18  7:09 ` David Miller
  2007-07-18 14:09 ` Mark Fortescue
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2007-07-18  7:09 UTC (permalink / raw)
  To: sfr; +Cc: wli, linux-kernel, akpm, sparclinux

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 18 Jul 2007 14:41:40 +1000

> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  arch/sparc/Kconfig       |    3 +++
>  arch/sparc64/Kconfig     |    3 +++
>  include/asm-sparc64/io.h |    5 -----
>  3 files changed, 6 insertions(+), 5 deletions(-)
> 
> This is part of a rash attempt to make allmodconfig builds work for sparc
> and sparc64 :-)

Hehe, applied, thanks Stephen.

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

* Re: [PATCH] Mark sparc and sparc64 as not having virt_to_bus
  2007-07-18  4:41 [PATCH] Mark sparc and sparc64 as not having virt_to_bus Stephen Rothwell
  2007-07-18  7:09 ` David Miller
@ 2007-07-18 14:09 ` Mark Fortescue
  2007-07-18 22:25   ` David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Fortescue @ 2007-07-18 14:09 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: David S. Miller, wli, LKML, Andrew Morton, sparclinux

Hi All,

Currently, sun4c (and sun4m) do NOT support the FDC driver as a module.
I did look at it but decided there were better issues to resolve at the 
time.

A fix for this issue would either envolve a lot of work moving the low 
level assembly interrupt handler from arch/sparc/kernel/entry.S to the 
floppy driver module, or the exporting of a number of variables and 
functions used by the handler so that they can be picked up by the floppy 
driver module.

Moving the low level handeler would be better from the point of view of 
modular code.

Regards
 	Mark Fortescue.

On Wed, 18 Jul 2007, Stephen Rothwell wrote:

>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> arch/sparc/Kconfig       |    3 +++
> arch/sparc64/Kconfig     |    3 +++
> include/asm-sparc64/io.h |    5 -----
> 3 files changed, 6 insertions(+), 5 deletions(-)
>
> This is part of a rash attempt to make allmodconfig builds work for sparc
> and sparc64 :-)
>
> -- 
> Cheers,
> Stephen Rothwell                    sfr@canb.auug.org.au
>
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> index 73df711..603d83a 100644
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -21,6 +21,9 @@ config GENERIC_ISA_DMA
> 	bool
> 	default y
>
> +config ARCH_NO_VIRT_TO_BUS
> +	def_bool y
> +
> source "init/Kconfig"
>
> menu "General machine setup"
> diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig
> index b84b6af..df6ee71 100644
> --- a/arch/sparc64/Kconfig
> +++ b/arch/sparc64/Kconfig
> @@ -62,6 +62,9 @@ config AUDIT_ARCH
> 	bool
> 	default y
>
> +config ARCH_NO_VIRT_TO_BUS
> +	def_bool y
> +
> choice
> 	prompt "Kernel page size"
> 	default SPARC64_PAGE_SIZE_8KB
> diff --git a/include/asm-sparc64/io.h b/include/asm-sparc64/io.h
> index ad595b6..9565a89 100644
> --- a/include/asm-sparc64/io.h
> +++ b/include/asm-sparc64/io.h
> @@ -14,11 +14,6 @@
> #define __SLOW_DOWN_IO	do { } while (0)
> #define SLOW_DOWN_IO	do { } while (0)
>
> -extern unsigned long virt_to_bus_not_defined_use_pci_map(volatile void *addr);
> -#define virt_to_bus virt_to_bus_not_defined_use_pci_map
> -extern unsigned long bus_to_virt_not_defined_use_pci_map(volatile void *addr);
> -#define bus_to_virt bus_to_virt_not_defined_use_pci_map
> -
> /* BIO layer definitions. */
> extern unsigned long kern_base, kern_size;
> #define page_to_phys(page)	(page_to_pfn(page) << PAGE_SHIFT)
> -- 
> 1.5.2.3
>
> -
> To unsubscribe from this list: send the line "unsubscribe sparclinux" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: [PATCH] Mark sparc and sparc64 as not having virt_to_bus
  2007-07-18 14:09 ` Mark Fortescue
@ 2007-07-18 22:25   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2007-07-18 22:25 UTC (permalink / raw)
  To: mark; +Cc: sfr, wli, linux-kernel, akpm, sparclinux

From: Mark Fortescue <mark@mtfhpc.demon.co.uk>
Date: Wed, 18 Jul 2007 15:09:41 +0100 (BST)

> Currently, sun4c (and sun4m) do NOT support the FDC driver as a module.
> I did look at it but decided there were better issues to resolve at the 
> time.

The easiest thing to do is to make it so that the floppy driver
won't be set modular in drivers/block/Kconfig for SPARC.


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

end of thread, other threads:[~2007-07-18 22:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-18  4:41 [PATCH] Mark sparc and sparc64 as not having virt_to_bus Stephen Rothwell
2007-07-18  7:09 ` David Miller
2007-07-18 14:09 ` Mark Fortescue
2007-07-18 22:25   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®