From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH resend] arm64: dmi: Add SMBIOS/DMI support
Date: Tue, 8 Jul 2014 10:15:14 +0100 [thread overview]
Message-ID: <20140708091513.GC8235@arm.com> (raw)
In-Reply-To: <CAKv+Gu9QuHcV4+8Sx--HEXOCfFDqZw0JWvJJjHYAHS6Y1xF9qg@mail.gmail.com>
On Tue, Jul 08, 2014 at 09:55:53AM +0100, Ard Biesheuvel wrote:
> On 2 July 2014 12:34, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
> > From: Yi Li <yi.li@linaro.org>
> >
> > SMbios is important for server hardware vendors. It implements a spec for
> > providing descriptive information about the platform. Things like serial
> > numbers, physical layout of the ports, build configuration data, and the like.
> >
> > This has been tested by dmidecode and lshw tools.
> >
> > Signed-off-by: Yi Li <yi.li@linaro.org>
> > [ardb: whitespace, commit log tweaks]
> > Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> > ---
> >
> > Resending on behalf of Yi.
> > Please consider for 3.17.
> >
>
> Ping?
Not sure what this does, but I can review it on a superficial level :)
> > diff --git a/arch/arm64/include/asm/dmi.h b/arch/arm64/include/asm/dmi.h
> > new file mode 100644
> > index 000000000000..b8758f46fb42
> > --- /dev/null
> > +++ b/arch/arm64/include/asm/dmi.h
> > @@ -0,0 +1,28 @@
> > +/*
> > + * arch/arm64/include/asm/dmi.h
> > + *
> > + * Copyright (C) 2013 Linaro Limited.
> > + * Written by: Yi Li (yi.li at linaro.org)
> > + *
> > + * based on arch/ia64/include/asm/dmi.h
> > + *
> > + * This file is subject to the terms and conditions of the GNU General Public
> > + * License. See the file "COPYING" in the main directory of this archive
> > + * for more details.
> > + */
> > +
> > +
> > +#ifndef _ASM_DMI_H
> > +#define _ASM_DMI_H 1
You don't need the 1 here (copied from ia64?). Also, please try to follow
the existing style for arm64 and use __ASM_DMI_H.
> > +#include <linux/slab.h>
> > +#include <linux/efi.h>
> > +
> > +/* Use efi mappings for DMI */
> > +#define dmi_early_remap(x, l) efi_lookup_mapped_addr(x)
Throwing away the length doesn't feel right, especially since the efi map
*does* have a size field.
> > +#define dmi_early_unmap(x, l)
> > +#define dmi_remap(x, l) efi_lookup_mapped_addr(x)
How do we guarantee that we don't call these after efi_free_boot_services?
(it would be good to enforce that somehow).
> > +#define dmi_unmap(x)
> > +#define dmi_alloc(l) kzalloc(l, GFP_ATOMIC)
Why does this have to be atomic?
Will
next prev parent reply other threads:[~2014-07-08 9:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 10:34 [PATCH resend] arm64: dmi: Add SMBIOS/DMI support Ard Biesheuvel
2014-07-08 8:55 ` Ard Biesheuvel
2014-07-08 9:15 ` Will Deacon [this message]
2014-07-08 9:27 ` Ard Biesheuvel
2014-07-08 9:30 ` Will Deacon
2014-07-10 5:49 ` Ard Biesheuvel
-- strict thread matches above, loose matches on Subject: below --
2014-09-19 17:00 Ard Biesheuvel
2014-09-19 17:25 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140708091513.GC8235@arm.com \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).