2003-07-12 02:09:44

by Milton Miller

[permalink] [raw]
Subject: [PATCH] Allow LBD on architectures that support it

While researching the as-iosched division last night (sorry, I slept
and went to work before sending out the patch), I noticed CONFIG_LBD
wasn't in my config file. The following architectures appear to have
the necessary asm/types.h changes:

include/asm-i386/types.h:typedef u64 sector_t;
include/asm-mips/types.h:typedef u64 sector_t;
include/asm-ppc/types.h:typedef u64 sector_t;
include/asm-s390/types.h:typedef u64 sector_t;
include/asm-sh/types.h:typedef u64 sector_t;
include/asm-x86_64/types.h:typedef u64 sector_t;


Choosing the 32 bit versions of those I selected

X86 MIPS32 PPC32 ARCH_S390_31 SUPERH

(Yes, X86_64 wouldn't need it except for defining X86. PARISC and SPARC
might want it, not sure about m68k and the other 32 bit architectures.
For that matter, I wonder what SuperH platform will use it. This patch
just shows what has been merged).


===== drivers/block/Kconfig 1.5 vs edited =====
--- 1.5/drivers/block/Kconfig Sun Apr 20 18:21:17 2003
+++ edited/drivers/block/Kconfig Fri Jul 11 02:17:02 2003
@@ -340,7 +340,7 @@

config LBD
bool "Support for Large Block Devices"
- depends on X86
+ depends on X86 || MIPS32 || PPC32 || ARCH_S390_31 || SUPERH
help
Say Y here if you want to attach large (bigger than 2TB) discs to
your machine, or if you want to have a raid or loopback device


2003-07-12 02:16:58

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH] Allow LBD on architectures that support it

Milton Miller <[email protected]> wrote:
>
> config LBD
> bool "Support for Large Block Devices"
> - depends on X86
> + depends on X86 || MIPS32 || PPC32 || ARCH_S390_31 || SUPERH

yup, the idea was that architecture maintainers could come in and turn this
on once they had verified that it actually works OK.

However I don't have a problem with just doing the above and then listening
for distant bangs.