From: Thomas Gleixner <tglx@linutronix.de>
To: Paolo Pisati <p.pisati@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, LKML <linux-kernel@vger.kernel.org>,
josh@joshtriplett.org
Subject: Re: [PATCH] MCA: garbage collect sys_desc_table
Date: Thu, 16 Jul 2015 18:13:58 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.11.1507161750290.18576@nanos> (raw)
In-Reply-To: <1436375677-16052-2-git-send-email-p.pisati@gmail.com>
On Wed, 8 Jul 2015, Paolo Pisati wrote:
This lacks a proper changelog.
> Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
> diff --git a/Documentation/x86/zero-page.txt b/Documentation/x86/zero-page.txt
> index 82fbdbc..0761737 100644
> --- a/Documentation/x86/zero-page.txt
> +++ b/Documentation/x86/zero-page.txt
> @@ -17,7 +17,6 @@ Offset Proto Name Meaning
> (struct ist_info)
> 080/010 ALL hd0_info hd0 disk parameter, OBSOLETE!!
> 090/010 ALL hd1_info hd1 disk parameter, OBSOLETE!!
> -0A0/010 ALL sys_desc_table System description table (struct sys_desc_table)
Removing this is wrong. The space stays reserved for sys_desc_table.
It's just unused and should be marked OBSOLETE.
> extern void set_task_blockstep(struct task_struct *task, bool on);
>
> -/*
> - * from system description table in BIOS. Mostly for MCA use, but
> - * others may find it useful:
> - */
> -extern unsigned int machine_id;
> -extern unsigned int machine_submodel_id;
> -extern unsigned int BIOS_revision;
> -
> /* Boot loader type from the setup header: */
> extern int bootloader_type;
> extern int bootloader_version;
> diff --git a/arch/x86/include/uapi/asm/bootparam.h b/arch/x86/include/uapi/asm/bootparam.h
> index ab456dc..ad00cf4 100644
> --- a/arch/x86/include/uapi/asm/bootparam.h
> +++ b/arch/x86/include/uapi/asm/bootparam.h
> @@ -86,11 +86,6 @@ struct setup_header {
> __u32 handover_offset;
> } __attribute__((packed));
>
> -struct sys_desc_table {
> - __u16 length;
> - __u8 table[14];
> -};
> -
> /* Gleaned from OFW's set-parameters in cpu/x86/pc/linux.fth */
> struct olpc_ofw_header {
> __u32 ofw_magic; /* OFW signature */
> @@ -120,12 +115,12 @@ struct boot_params {
> __u8 _pad3[16]; /* 0x070 */
> __u8 hd0_info[16]; /* obsolete! */ /* 0x080 */
> __u8 hd1_info[16]; /* obsolete! */ /* 0x090 */
> - struct sys_desc_table sys_desc_table; /* 0x0a0 */
> + __u8 _pad4[16]; /* 0x0a0 */
This is a UAPI header and we dont know what might reference that
field. Leave it as is and mark it obsolete.
> --- a/arch/x86/kernel/kexec-bzimage64.c
> +++ b/arch/x86/kernel/kexec-bzimage64.c
> @@ -222,9 +222,6 @@ setup_boot_parameters(struct kimage *image, struct boot_params *params,
> memset(¶ms->hd0_info, 0, sizeof(params->hd0_info));
> memset(¶ms->hd1_info, 0, sizeof(params->hd1_info));
These two lines are useless as well, but that should be a separate patch
> - /* Default sysdesc table */
> - params->sys_desc_table.length = 0;
> -
Thanks,
tglx
next prev parent reply other threads:[~2015-07-16 16:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-08 17:14 Paolo Pisati
2015-07-08 17:14 ` Paolo Pisati
2015-07-16 16:13 ` Thomas Gleixner [this message]
2015-07-20 16:23 ` [PATCH v2] x86: MCA: obsolete sys_desc_table Paolo Pisati
2015-07-21 9:44 ` [tip:x86/boot] x86/boot: Obsolete the MCA sys_desc_table tip-bot for Paolo Pisati
2015-07-10 9:06 ` Resend: Re: [PATCH] x86: MCA: garbage collect sys_desc_table Paolo Pisati
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=alpine.DEB.2.11.1507161750290.18576@nanos \
--to=tglx@linutronix.de \
--cc=hpa@zytor.com \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=p.pisati@gmail.com \
--cc=x86@kernel.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
all inboxes | Powered by JetHome®