fedora-cvs-commits@redhat.com
[Top] [All Lists]

rpms/kernel/FC-6 linux-2.6-sysfs-deprecated-fix-nested-devices.patch, NO

Subject: rpms/kernel/FC-6 linux-2.6-sysfs-deprecated-fix-nested-devices.patch, NONE, 1.1 linux-2.6-x86_64-fix-boot-speed-on-vt.patch, NONE, 1.1 kernel-2.6.spec, 1.3030, 1.3031
From:
Date: Wed, 17 Oct 2007 17:34:26 -0400
Author: cebbert

Update of /cvs/dist/rpms/kernel/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv26467

Modified Files:
        kernel-2.6.spec 
Added Files:
        linux-2.6-sysfs-deprecated-fix-nested-devices.patch 
        linux-2.6-x86_64-fix-boot-speed-on-vt.patch 
Log Message:
* Tue Oct 16 2007 Chuck Ebbert <cebbert@xxxxxxxxxx>
- sysfs: fix device links
- fix boot speed on VT enabled processors


linux-2.6-sysfs-deprecated-fix-nested-devices.patch:
 core.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

--- NEW FILE linux-2.6-sysfs-deprecated-fix-nested-devices.patch ---
Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3eb215de26e6e94bf5fed9cb77230c383b30e53b
Commit:     3eb215de26e6e94bf5fed9cb77230c383b30e53b
Parent:     85923b124624eb49ebef4731bb6b5670e792ff57
Author:     Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
AuthorDate: Sun Oct 7 12:22:21 2007 -0400
Committer:  Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx>
CommitDate: Sun Oct 7 16:42:22 2007 -0700

    Driver core: fix SYSF_DEPRECATED breakage for nested classdevs
    
    We should only reparent to a class former class devices that
    form the base of class hierarchy. Nested devices should still
    grow from their real parents.
    
    Signed-off-by: Dmitry Torokhov <dtor@xxxxxxx>
    Tested-by: Andrey Borzenkov <arvidjaar@xxxxxxx>
    Tested-by: Anssi Hannula <anssi.hannula@xxxxxxxxx>
    Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
---
 drivers/base/core.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index 67c9258..ec86d6f 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -586,9 +586,13 @@ void device_initialize(struct device *dev)
 static struct kobject * get_device_parent(struct device *dev,
                                          struct device *parent)
 {
-       /* Set the parent to the class, not the parent device */
-       /* this keeps sysfs from having a symlink to make old udevs happy */
-       if (dev->class)
+       /*
+        * Set the parent to the class, not the parent device
+        * for topmost devices in class hierarchy.
+        * This keeps sysfs from having a symlink to make old
+        * udevs happy
+        */
+       if (dev->class && (!parent || parent->class != dev->class))
                return &dev->class->subsys.kobj;
        else if (parent)
                return &parent->kobj;

linux-2.6-x86_64-fix-boot-speed-on-vt.patch:
 head.S |    7 +++++++
 1 files changed, 7 insertions(+)

--- NEW FILE linux-2.6-x86_64-fix-boot-speed-on-vt.patch ---

# HG changeset patch
# User Zachary Amsden <zach@xxxxxxxxxx>
# Date 1186873093 25200
# Node ID 860481e231876fdd9075a4eeeb2356a12accf07c
# Parent 736343323284c1fd93834e8309ecbc8667ab1b35
x86_64: Early segment setup for VT

VT is very picky about when it can enter execution.
Get all segments setup and get LDT and TR into valid state to allow
VT execution under VMware and KVM (untested).

This makes the boot decompression run under VT, which makes it several
orders of magnitude faster on 64-bit Intel hardware.

Before, I was seeing times up to a minute or more to decompress a 1.3MB kernel
on a very fast box.

Signed-off-by: Zachary Amsden <zach@xxxxxxxxxx>
Signed-off-by: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

committer: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx>

BZ 320111

--- a/arch/x86_64/boot/compressed/head.S        Sat Aug 11 15:58:13 2007 -0700
+++ b/arch/x86_64/boot/compressed/head.S        Sat Aug 11 15:58:13 2007 -0700
@@ -195,6 +195,11 @@ ENTRY(startup_64)
        movl    %eax, %ds
        movl    %eax, %es
        movl    %eax, %ss
+       movl    %eax, %fs
+       movl    %eax, %gs
+       lldt    %ax
+       movl    $0x20, %eax
+       ltr     %ax
 
        /* Compute the decompressed kernel start address.  It is where
         * we were loaded at aligned to a 2M boundary. %rbp contains the
@@ -295,6 +300,8 @@ gdt:
        .quad   0x0000000000000000      /* NULL descriptor */
        .quad   0x00af9a000000ffff      /* __KERNEL_CS */
        .quad   0x00cf92000000ffff      /* __KERNEL_DS */
+       .quad   0x0080890000000000      /* TS descriptor */
+       .quad   0x0000000000000000      /* TS continued */
 gdt_end:
        .bss
 /* Stack for uncompression */



Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/FC-6/kernel-2.6.spec,v
retrieving revision 1.3030
retrieving revision 1.3031
diff -u -r1.3030 -r1.3031
--- kernel-2.6.spec     16 Oct 2007 18:13:44 -0000      1.3030
+++ kernel-2.6.spec     17 Oct 2007 21:34:23 -0000      1.3031
@@ -553,6 +553,7 @@
 Patch350: linux-2.6-devmem.patch
 Patch370: linux-2.6-crash-driver.patch
 Patch390: linux-2.6-dev-get-driver-properly.patch
+Patch391: linux-2.6-sysfs-deprecated-fix-nested-devices.patch
 
 Patch400: linux-2.6-scsi-cpqarray-set-master.patch
 Patch404: linux-2.6-scsi-mpt-vmware-fix.patch
@@ -576,6 +577,7 @@
 Patch600: linux-2.6-vm-silence-atomic-alloc-failures.patch
 Patch601: linux-2.6-input-ff-create-limit-memory.patch
 Patch602: linux-2.6-x86_64-e820_hole_size.patch
+Patch603: linux-2.6-x86_64-fix-boot-speed-on-vt.patch
 
 Patch610: linux-2.6-defaults-fat-utf8.patch
 Patch620: linux-2.6-defaults-unicode-vt.patch
@@ -1196,6 +1198,8 @@
 # driver core
 #
 ApplyPatch linux-2.6-dev-get-driver-properly.patch
+# fix deprecated device links
+ApplyPatch linux-2.6-sysfs-deprecated-fix-nested-devices.patch
 
 #
 # SCSI Bits.
@@ -1248,6 +1252,8 @@
 ApplyPatch linux-2.6-input-ff-create-limit-memory.patch
 # fix sizing of memory holes on x86_64
 ApplyPatch linux-2.6-x86_64-e820_hole_size.patch
+# fix boot speed on VT enabled processors
+ApplyPatch linux-2.6-x86_64-fix-boot-speed-on-vt.patch
 
 # Changes to upstream defaults.
 # Use UTF-8 by default on VFAT.
@@ -2279,6 +2285,10 @@
 
 %changelog
 * Tue Oct 16 2007 Chuck Ebbert <cebbert@xxxxxxxxxx>
+- sysfs: fix device links
+- fix boot speed on VT enabled processors
+
+* Tue Oct 16 2007 Chuck Ebbert <cebbert@xxxxxxxxxx>
 - Linux 2.6.22.10
 
 * Thu Sep 27 2007 Chuck Ebbert <cebbert@xxxxxxxxxx>

-- 
fedora-cvs-commits mailing list
fedora-cvs-commits@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-cvs-commits

<Prev in Thread] Current Thread [Next in Thread>
  • rpms/kernel/FC-6 linux-2.6-sysfs-deprecated-fix-nested-devices.patch, NONE, 1.1 linux-2.6-x86_64-fix-boot-speed-on-vt.patch, NONE, 1.1 kernel-2.6.spec, 1.3030, 1.3031, fedora-cvs-commits <=