login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
26
Re: [PATCH 1/2] Add /sys/firmware/memmap
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Bernhard Walle
Subject:
Re: [PATCH 1/2] Add /sys/firmware/memmap
Date: Thursday, June 26, 2008 - 1:15 am
* Vivek Goyal [2008-06-25 18:43]:
quoted text
> > 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.
Agreed.
quoted text
> [..] > > +#include <linux/string.h> > > +#include <linux/firmware-map.h> > > +#include <linux/kernel.h> > > +#include <linux/module.h> > > +#include <linux/types.h> > > +#include <linux/bootmem.h> > > + > > +/* > > + * String representation of enum firmware_map_type from > > + * <linux/firmware-map.h>. > > + */ > > +const char *type_to_string_map[] = { > > + "RAM", /* MAP_RAM */ > > + "Reserved", /* MAP_RESERVED */ > > + "ACPI Tables", /* MAP_ACPI */ > > + "Non-volatile Storage", /* MAP_NVS */ > > +}; > > + > > 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.
Also agreed, see the resent patch. Bernhard -- Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
x86: Add /sys/firmware/memmap
, Bernhard Walle
, (Wed Jun 25, 12:57 pm)
[PATCH 1/2] Add /sys/firmware/memmap
, Bernhard Walle
, (Wed Jun 25, 12:57 pm)
[PATCH 2/2] Use FIRMWARE_MEMMAP on x86/E820
, Bernhard Walle
, (Wed Jun 25, 12:57 pm)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, Vivek Goyal
, (Wed Jun 25, 3:43 pm)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, Mikael Pettersson
, (Thu Jun 26, 1:13 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, Bernhard Walle
, (Thu Jun 26, 1:15 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, Bernhard Walle
, (Thu Jun 26, 1:45 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, Mikael Pettersson
, (Thu Jun 26, 2:11 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, Vivek Goyal
, (Thu Jun 26, 5:42 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, H. Peter Anvin
, (Thu Jun 26, 11:00 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, Vivek Goyal
, (Thu Jun 26, 11:18 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, Bernhard Walle
, (Thu Jun 26, 11:23 am)
Re: [PATCH 1/2] Add /sys/firmware/memmap
, H. Peter Anvin
, (Thu Jun 26, 12:18 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
l