From: Paolo Pisati <p.pisati@gmail.com>
To: Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
x86@kernel.org, linux-kernel@vger.kernel.org,
josh@joshtriplett.org
Subject: Resend: Re: [PATCH] x86: MCA: garbage collect sys_desc_table
Date: Fri, 10 Jul 2015 11:06:50 +0200 [thread overview]
Message-ID: <20150710090650.GA6771@luxor.wired.org> (raw)
In-Reply-To: <1436375677-16052-1-git-send-email-p.pisati@gmail.com>
On Wed, Jul 08, 2015 at 07:14:36PM +0200, Paolo Pisati wrote:
Adding Josh Triplett since he was interested in MCA removal for the kernel tinification project, and slightly change
the subject line.
> Is sys_desc_table still used anywhere? It seems not:
>
> arch/x86/boot/mca.c::query_mca()
> ...
> copy_from_fs(&boot_params.sys_desc_table, oreg.bx, len);
> ...
>
> arch/x86/kernel/setup.c::setup_arch()
> ...
> if (boot_params.sys_desc_table.length != 0) {
> machine_id = boot_params.sys_desc_table.table[0];
> machine_submodel_id = boot_params.sys_desc_table.table[1];
> BIOS_revision = boot_params.sys_desc_table.table[2];
> }
> ...
>
> $ git grep machine_id
> ...
> arch/x86/include/asm/processor.h:extern unsigned int machine_id;
> arch/x86/kernel/setup.c:unsigned int machine_id;
> arch/x86/kernel/setup.c: machine_id = boot_params.sys_desc_table.table[0];
> ...
>
> $ git grep machine_submodel_id
> arch/x86/include/asm/processor.h:extern unsigned int machine_submodel_id;
> arch/x86/kernel/setup.c:unsigned int machine_submodel_id;
> arch/x86/kernel/setup.c: machine_submodel_id = boot_params.sys_desc_table.table[1];
>
> $ git grep BIOS_revision
> arch/x86/include/asm/processor.h:extern unsigned int BIOS_revision;
> arch/x86/kernel/setup.c:unsigned int BIOS_revision;
> arch/x86/kernel/setup.c: BIOS_revision = boot_params.sys_desc_table.table[2];
>
> Compile tested with i386_defconfig, x86_64_defconfig and allyesconfig.
>
> Paolo Pisati (1):
> MCA: garbage collect sys_desc_table
>
> Documentation/x86/zero-page.txt | 1 -
> arch/x86/boot/Makefile | 2 +-
> arch/x86/boot/boot.h | 3 ---
> arch/x86/boot/compressed/eboot.c | 4 ----
> arch/x86/boot/main.c | 3 ---
> arch/x86/boot/mca.c | 38 -----------------------------------
> arch/x86/include/asm/processor.h | 8 --------
> arch/x86/include/uapi/asm/bootparam.h | 19 +++++++-----------
> arch/x86/kernel/kexec-bzimage64.c | 3 ---
> arch/x86/kernel/setup.c | 5 -----
> 10 files changed, 8 insertions(+), 78 deletions(-)
> delete mode 100644 arch/x86/boot/mca.c
>
> --
> 2.1.4
>
--
bye,
p.
prev parent reply other threads:[~2015-07-10 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-08 17:14 [PATCH] " Paolo Pisati
2015-07-08 17:14 ` Paolo Pisati
2015-07-16 16:13 ` Thomas Gleixner
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 ` Paolo Pisati [this message]
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=20150710090650.GA6771@luxor.wired.org \
--to=p.pisati@gmail.com \
--cc=hpa@zytor.com \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--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
Powered by JetHome