linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Early cpio decoder and ACPI table override via initrd making use of it
@ 2012-09-21 13:28 Thomas Renninger
  2012-09-21 13:28 ` [PATCH 1/2] lib: Add early cpio decoder Thomas Renninger
  2012-09-21 13:28 ` [PATCH 2/2] ACPI: Override arbitrary ACPI tables via initrd for debugging Thomas Renninger
  0 siblings, 2 replies; 16+ messages in thread
From: Thomas Renninger @ 2012-09-21 13:28 UTC (permalink / raw)
  To: hpa
  Cc: trenn, initramfs, robert.moore, lenb, linux-kernel, linux-acpi,
	yinghai, eric.piel

Should still apply on latest Linux tree, I can resubmit if not.
Would be great if hpa can push this into a x86 branch to get
this into linux-next and into Linus' tree with the next merge
window.

Thanks,

    Thomas

Dmesg output of a quick test:
 FACP ACPI table found in initrd [kernel/firmware/acpi/facp.aml][0xf4]
 DSDT ACPI table found in initrd [kernel/firmware/acpi/dsdt.aml][0x333c]
 e820: modified physical RAM map:
...
   modified: [mem 0x00000000f7fec000-0x00000000f7fef42f] ACPI data
...
 Disabling lock debugging due to kernel taint
 ACPI: Override [FACP-OEMFACP ], this is unsafe: tainting kernel
 ACPI: FACP 00000000f7ff0281 Physical table override, new table: ffffffffff4b7000
 ACPI: FACP 00000000f7fec000 000F4 (v03 A M I  OEMFACP  08000713 INTL 20120518)
 ACPI: Override [DSDT-0AAAA001], this is unsafe: tainting kernel
 ACPI: DSDT 00000000f7ff0410 Physical table override, new table: ffffffffff4b70f4
 ACPI: DSDT 00000000f7fec0f4 0333C (v01  0AAAA 0AAAA001 00000001 INTL 20120518)



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Early cpio decoder and ACPI table override via initrd making use of it
@ 2012-08-30  9:29 Thomas Renninger
  2012-08-30  9:29 ` [PATCH 2/2] ACPI: Override arbitrary ACPI tables via initrd for debugging Thomas Renninger
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Renninger @ 2012-08-30  9:29 UTC (permalink / raw)
  To: hpa
  Cc: linux-kernel, lenb, robert.moore, ming.m.lin, initramfs, bigeasy,
	vojcek, eric.piel, linux-acpi, yinghai

This is based on the early cpio decoder from hpa.
The first patch is exactly the patch (41750d31fc9599fd81763e685) from git repo:
kernel/git/hpa/linux-earlyinitramfs. Ony the Makefile was slightly
adjusted to latest Linus kernel (3.6.0-rc3).

Because of the special requirements hpa mentioned, I gave up the cleaner
callback approach. It may make sense to revive it if there are potential
more users and let the very early code call the cpio decoder directly and
let others use the callback interface I had made up.

Anyway, it would be great to see these two patches showing up in a
mainline branch and linux-next asap, so that they can slip in with the next
(3.7) merge window.

Working on ACPI features or debugging ACPI problems is a nightmare on Linux
currently. ACPI table overrding via initrd makes working on such problems
a lot easier.

   Thomas


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Early initrd file overwrite and ACPI table override making use of it
@ 2012-07-18 10:36 Thomas Renninger
  2012-07-18 10:36 ` [PATCH 2/2] ACPI: Override arbitrary ACPI tables via initrd for debugging Thomas Renninger
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Renninger @ 2012-07-18 10:36 UTC (permalink / raw)
  To: linux-kernel, hpa, lenb; +Cc: linux-acpi, initramfs, bigeasy

Hi Peter,
another attempt, this time making use of cpio encapsulation
of early files as discussed.
Would be great if this can get committed to the branch you created
and get queued for 3.6-rc1 mainline inclusion.

It is based on Linus' master branch on top of:
commit 8c84bf4166a4698296342841a549bbee03860ac0
Merge: bd0a521 5db9a4d
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Sun Jul 8 09:09:27 2012 -0700

    Merge branch 'for-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup

Thanks,

   Thomas


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-09-25 15:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-21 13:28 Early cpio decoder and ACPI table override via initrd making use of it Thomas Renninger
2012-09-21 13:28 ` [PATCH 1/2] lib: Add early cpio decoder Thomas Renninger
2012-09-21 13:28 ` [PATCH 2/2] ACPI: Override arbitrary ACPI tables via initrd for debugging Thomas Renninger
2012-09-21 20:56   ` Yinghai Lu
2012-09-25 14:17     ` Thomas Renninger
2012-09-22 15:16   ` Len Brown
2012-09-23  1:17     ` Thomas Renninger
2012-09-23  4:25       ` Len Brown
2012-09-24  6:40         ` Thomas Renninger
2012-09-24  9:21           ` Alan Cox
2012-09-25 15:25             ` [PATCH] ACPI: Only allow users with CAP_SYS_RAWIO rights to overwrite ACPI funcs at runtime Thomas Renninger
2012-09-24 18:26         ` [PATCH 2/2] ACPI: Override arbitrary ACPI tables via initrd for debugging Matthew Garrett
2012-09-24 20:27     ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2012-08-30  9:29 Early cpio decoder and ACPI table override via initrd making use of it Thomas Renninger
2012-08-30  9:29 ` [PATCH 2/2] ACPI: Override arbitrary ACPI tables via initrd for debugging Thomas Renninger
2012-08-30  9:34   ` Thomas Renninger
2012-07-18 10:36 Early initrd file overwrite and ACPI table override making use of it Thomas Renninger
2012-07-18 10:36 ` [PATCH 2/2] ACPI: Override arbitrary ACPI tables via initrd for debugging Thomas Renninger

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).