Ironhide

From Hybridgraphics

(Difference between revisions)
Jump to: navigation, search
(Not true.. only sleeping)
(HvCBkbNSSvXtW)
Line 1: Line 1:
-
This is an implementation of the original [[bumblebee]] code written by [http://www.martin-juhl.dk/ Martin Juhl].  
+
I have Linux 2.6.24 Dom0 and DomU working stlaby with code from Ubuntu Hardy.Ubuntus's Hardy code base is good minus a patch:Signed-off-by: Chuck Short  /xen/patchset/004-xen-net-fix.patch            |  38 ++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 debian/binary-custom.d/xen/patchset/004-xen-net-fix.patchdiff  git a/debian/binary-custom.d/xen/patchset/004-xen-net-fix.patch b/debian/binary-custom.d/xen/patchset/004-xen-net-fix.patchnew file mode 100644index 0000000..996991b  /dev/null+++ b/debian/binary-custom.d/xen/patchset/004-xen-net-fix.patch@@ -0,0 +1,38 @@+diff -Naur ubuntu-hardy-xen/drivers/xen/netfront/netfront.c ubuntu-hardy-xen-new/drivers/xen/netfront/netfront.c+ ubuntu-hardy-xen/drivers/xen/netfront/netfront.c  2008-04-21 09:16:12.000000000 -0400++++ ubuntu-hardy-xen-new/drivers/xen/netfront/netfront.c      2008-04-21 09:37:02.000000000 -0400+@@ -622,6 +622,7 @@+      struct netfront_info *np = netdev_priv(dev);++      memset(&np->stats, 0, sizeof(np->stats));++      napi_enable(&np->napi);++      spin_lock_bh(&np->rx_lock);+      if (netfront_carrier_ok(np)) {+@@ -830,6 +831,8 @@+              reservation.domid        = DOMID_SELF;++              if (!xen_feature(XENFEAT_auto_translated_physmap)) {++                      int j;+++                      /* After all PTEs have been zapped, flush the TLB. */+                      np->rx_mcl[i-1].args[MULTI_UVMFLAGS_INDEX] =+                              UVMF_TLB_FLUSH|UVMF_ALL;+@@ -847,7 +850,8 @@+                      /* Check return status of HYPERVISOR_memory_op(). */+                      if (unlikely(np->rx_mcl[i].result != i))+                              panic( Unable to reduce memory reservation\n );+-                      while (i )++                      j = i;++                      while (j )+                              BUG_ON(np->rx_mcl[i].result);+              } else {+                      if (HYPERVISOR_memory_op(XENMEM_decrease_reservation,+@@ -1671,6 +1675,7 @@+ static int network_close(struct net_device *dev)+ {+      struct netfront_info *np = netdev_priv(dev);++      napi_disable(&np->napi);+      netif_stop_queue(np->netdev);+      return 0;+ } 1.5.4.3
-
 
+
-
It installs and configures the ACPI calls to switch the discrete graphics card on/off via acpi_call, and provides a graphical user interface to set up the system to each specific laptop configuration.
+
-
 
+
-
Available here:
+
-
https://launchpad.net/~mj-casalogic/+archive/ironhide
+
-
 
+
-
Read more:
+
-
http://www.martin-juhl.dk/2011/08/ironhide-reporting-for-duty/
+
-
and
+
-
http://www.martin-juhl.dk/2011/08/reassemble-of-the-bee/
+
-
 
+
-
Install:
+
-
  apt-add-repository ppa:mj-casalogic/ironhide
+
-
apt-get update
+
-
apt-get install ironhide
+
-
 
+
-
Configuration:
+
-
ironhide-configuration
+
-
 
+
-
Additional Settings:
+
-
ironhide-settings
+
-
 
+
-
Submit Bugreport:
+
-
ironhide-bugreport
+

Revision as of 23:12, 6 June 2012

I have Linux 2.6.24 Dom0 and DomU working stlaby with code from Ubuntu Hardy.Ubuntus's Hardy code base is good minus a patch:Signed-off-by: Chuck Short /xen/patchset/004-xen-net-fix.patch | 38 ++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 debian/binary-custom.d/xen/patchset/004-xen-net-fix.patchdiff git a/debian/binary-custom.d/xen/patchset/004-xen-net-fix.patch b/debian/binary-custom.d/xen/patchset/004-xen-net-fix.patchnew file mode 100644index 0000000..996991b /dev/null+++ b/debian/binary-custom.d/xen/patchset/004-xen-net-fix.patch@@ -0,0 +1,38 @@+diff -Naur ubuntu-hardy-xen/drivers/xen/netfront/netfront.c ubuntu-hardy-xen-new/drivers/xen/netfront/netfront.c+ ubuntu-hardy-xen/drivers/xen/netfront/netfront.c 2008-04-21 09:16:12.000000000 -0400++++ ubuntu-hardy-xen-new/drivers/xen/netfront/netfront.c 2008-04-21 09:37:02.000000000 -0400+@@ -622,6 +622,7 @@+ struct netfront_info *np = netdev_priv(dev);++ memset(&np->stats, 0, sizeof(np->stats));++ napi_enable(&np->napi);++ spin_lock_bh(&np->rx_lock);+ if (netfront_carrier_ok(np)) {+@@ -830,6 +831,8 @@+ reservation.domid = DOMID_SELF;++ if (!xen_feature(XENFEAT_auto_translated_physmap)) {++ int j;+++ /* After all PTEs have been zapped, flush the TLB. */+ np->rx_mcl[i-1].args[MULTI_UVMFLAGS_INDEX] =+ UVMF_TLB_FLUSH|UVMF_ALL;+@@ -847,7 +850,8 @@+ /* Check return status of HYPERVISOR_memory_op(). */+ if (unlikely(np->rx_mcl[i].result != i))+ panic( Unable to reduce memory reservation\n );+- while (i )++ j = i;++ while (j )+ BUG_ON(np->rx_mcl[i].result);+ } else {+ if (HYPERVISOR_memory_op(XENMEM_decrease_reservation,+@@ -1671,6 +1675,7 @@+ static int network_close(struct net_device *dev)+ {+ struct netfront_info *np = netdev_priv(dev);++ napi_disable(&np->napi);+ netif_stop_queue(np->netdev);+ return 0;+ } 1.5.4.3

Personal tools