Re: [PATCH 1/2] Add /sys/firmware/memmap

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bernhard Walle <bwalle@...>
Cc: <x86@...>, <linux-kernel@...>, <kexec@...>, <yhlu.kernel@...>
Date: Wednesday, June 25, 2008 - 6:43 pm

On Wed, Jun 25, 2008 at 09:57:05PM +0200, Bernhard Walle wrote:

Hi Bernhard,

Thanks for the patch. Couple of thoughts.

Do we really need another CONFIG option (CONFIG_FIRMWARE_MEMMAP)? To,
me this does not seem to be a big chunk of code at the same time I am
assuming that most of the people will use it (because of kexec). So
probably, it might not make lot of sense to put additional CONFIG option.

[..]

How about leaving the decision of memory type on arch dependent code? How
about letting arch code pass you an string while adding entry and that
string will contain the type of memory. The way request_resource() is
implemented. 

I think that would be easier and provide more flexibility to arch
dependent code. For example, I see so many additional memory types for
EFI code. It will be good to give EFI code flexibility that how does
he perceive a particular memory region and then let kexec-tools deal 
with various memory types.
 
Thanks
Vivek
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
x86: Add /sys/firmware/memmap, Bernhard Walle, (Wed Jun 25, 3:57 pm)
[PATCH 1/2] Add /sys/firmware/memmap, Bernhard Walle, (Wed Jun 25, 3:57 pm)
Re: [PATCH 1/2] Add /sys/firmware/memmap, Vivek Goyal, (Wed Jun 25, 6:43 pm)
Re: [PATCH 1/2] Add /sys/firmware/memmap, Mikael Pettersson, (Thu Jun 26, 4:13 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap, Vivek Goyal, (Thu Jun 26, 8:42 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap, Bernhard Walle, (Thu Jun 26, 4:45 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap, Mikael Pettersson, (Thu Jun 26, 5:11 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap, H. Peter Anvin, (Thu Jun 26, 2:00 pm)
Re: [PATCH 1/2] Add /sys/firmware/memmap, Vivek Goyal, (Thu Jun 26, 2:18 pm)
Re: [PATCH 1/2] Add /sys/firmware/memmap, H. Peter Anvin, (Thu Jun 26, 3:18 pm)
Re: [PATCH 1/2] Add /sys/firmware/memmap, Bernhard Walle, (Thu Jun 26, 2:23 pm)
Re: [PATCH 1/2] Add /sys/firmware/memmap, Bernhard Walle, (Thu Jun 26, 4:15 am)
[PATCH 2/2] Use FIRMWARE_MEMMAP on x86/E820, Bernhard Walle, (Wed Jun 25, 3:57 pm)