Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 77

Thread: Daru2 and Latest Update

  1. #21
    Join Date
    Jan 2008
    Location
    Berlin/Potsdam - Germany
    Beans
    54
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Daru2 and Latest Update

    you can find the ppa at https://launchpad.net/~timo-tretter/+archive/ppa/

    for installing the kernel from this ppa add
    Code:
    deb http://ppa.launchpad.net/timo-tretter/ppa/ubuntu intrepid main
    deb-src http://ppa.launchpad.net/timo-tretter/ppa/ubuntu intrepid main
    to your /etc/apt/sources.list file and update your apt with
    Code:
    sudo apt-get update
    sudo apt-get upgrade
    to avoid the error that the server is not signed add the repository key with
    Code:
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com  0C177666C5D9696595765DC22CC852C735B96AB3
    ps: i386 is not ready now...but it shout be in a few minutes. i cannot test it now, hope it will start
    sorry for my broken english

  2. #22
    Join Date
    Mar 2006
    Location
    Ohio
    Beans
    569
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Daru2 and Latest Update

    Quote Originally Posted by badbull View Post
    you can find the ppa at https://launchpad.net/~timo-tretter/+archive/ppa/

    for installing the kernel from this ppa add
    Code:
    deb http://ppa.launchpad.net/timo-tretter/ppa/ubuntu intrepid main
    deb-src http://ppa.launchpad.net/timo-tretter/ppa/ubuntu intrepid main
    to your /etc/apt/sources.list file and update your apt with
    Code:
    sudo apt-get update
    sudo apt-get upgrade
    to avoid the error that the server is not signed add the repository key with
    Code:
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com  0C177666C5D9696595765DC22CC852C735B96AB3
    ps: i386 is not ready now...but it shout be in a few minutes. i cannot test it now, hope it will start
    I followed the above instructions & it worked like a charm for i686.

    I'm going to let it run all night & will let you know the results.

    How does this affect future kernel updates??

    Will Ubuntu upgrades overwrite this or will the kernel be upgraded when this ppa is??

    Thanks,

    jdb

  3. #23
    Join Date
    Jan 2008
    Location
    Berlin/Potsdam - Germany
    Beans
    54
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Daru2 and Latest Update

    Quote Originally Posted by jdb View Post
    How does this affect future kernel updates??

    Will Ubuntu upgrades overwrite this or will the kernel be upgraded when this ppa is??

    jdb
    i just increase the version number...so it will be overwritten if a new kernel comes out.

    we hope to get this patch into the kernel so it will be fixed in the next kernel version. hopefully the ubuntu maintainers add this to the jaunty kernel.
    sorry for my broken english

  4. #24
    Join Date
    Mar 2006
    Location
    Ohio
    Beans
    569
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Daru2 and Latest Update

    Quote Originally Posted by badbull View Post
    i just increase the version number...so it will be overwritten if a new kernel comes out.

    we hope to get this patch into the kernel so it will be fixed in the next kernel version. hopefully the ubuntu maintainers add this to the jaunty kernel.
    I see now, you bumped it from 2.6.27-11.27 to 2.6.27-11.28
    I like the way that works.
    If Ubuntu upgrades to something like 2.6.27-1X.YZ then you can make a 2.6.27-1X.YZ+1

    Yeah, if Ubuntu puts it in their jaunty kernel that will be great.
    With any luck it will make it to the kernel.org kernel eventually.

    jdb

  5. #25
    Join Date
    Mar 2006
    Location
    Ohio
    Beans
    569
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Daru2 and Latest Update

    BadBull, it ran all night with no problems, I think you've got it!!

    jdb

  6. #26
    Join Date
    May 2007
    Beans
    79
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Daru2 and Latest Update

    Hi Badbull, the patch from your PPA has been running fine for me all night too, without acpi=noirq.

    How many delays does the patch from the PPA have? Do we need to test with fewer delays as well?

  7. #27
    Join Date
    Mar 2006
    Location
    Ohio
    Beans
    569
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Daru2 and Latest Update

    Quote Originally Posted by williumbillium View Post
    Hi Badbull, the patch from your PPA has been running fine for me all night too, without acpi=noirq.

    How many delays does the patch from the PPA have? Do we need to test with fewer delays as well?
    He changed ACPI_EC_UDELAY from 100 to 500 and then added the delay to many additional spots in the code.
    I'm a little nervous about adding all that delay especially inside a spin_lock, they are only supposed to last for a few instructions.
    Keep an eye out for anything strange.

    If you still want directions on patching the kernel let me know.

    Here is BadBull's patch:

    Code:
    --- a/drivers/acpi/ec.c	2009-01-28 19:49:30.000000000 +0100
    +++ b/drivers/acpi/ec.c	2009-02-05 09:48:32.000000000 +0100
    @@ -67,7 +67,7 @@
     
     #define ACPI_EC_DELAY		500	/* Wait 500ms max. during EC ops */
     #define ACPI_EC_UDELAY_GLK	1000	/* Wait 1ms max. to get global lock */
    -#define ACPI_EC_UDELAY		100	/* Wait 100us before polling EC again */
    +#define ACPI_EC_UDELAY		500	/* Wait 100us before polling EC again */
     
     #define ACPI_EC_STORM_THRESHOLD 8	/* number of false interrupts
     					   per one transaction */
    @@ -255,27 +255,36 @@
     	int ret = 0;
     	pr_debug(PREFIX "transaction start\n");
     	/* disable GPE during transaction if storm is detected */
    +	udelay(ACPI_EC_UDELAY);
     	if (test_bit(EC_FLAGS_GPE_STORM, &ec->flags)) {
     		clear_bit(EC_FLAGS_GPE_MODE, &ec->flags);
     		acpi_disable_gpe(NULL, ec->gpe);
     	}
     	/* start transaction */
    +	udelay(ACPI_EC_UDELAY);
     	spin_lock_irqsave(&ec->curr_lock, tmp);
     	/* following two actions should be kept atomic */
    +	udelay(ACPI_EC_UDELAY);
     	ec->curr = t;
    +	udelay(ACPI_EC_UDELAY);
     	start_transaction(ec);
    +	udelay(ACPI_EC_UDELAY);
     	if (ec->curr->command == ACPI_EC_COMMAND_QUERY)
     		clear_bit(EC_FLAGS_QUERY_PENDING, &ec->flags);
     	spin_unlock_irqrestore(&ec->curr_lock, tmp);
    +	udelay(ACPI_EC_UDELAY);
     	/* if we selected poll mode or failed in GPE-mode do a poll loop */
     	if (force_poll ||
     	    !test_bit(EC_FLAGS_GPE_MODE, &ec->flags) ||
     	    acpi_ec_wait(ec))
     		ret = ec_poll(ec);
    +	udelay(ACPI_EC_UDELAY);
     	pr_debug(PREFIX "transaction end\n");
     	spin_lock_irqsave(&ec->curr_lock, tmp);
     	ec->curr = NULL;
    +	udelay(ACPI_EC_UDELAY);
     	spin_unlock_irqrestore(&ec->curr_lock, tmp);
    +	udelay(ACPI_EC_UDELAY);
     	if (test_bit(EC_FLAGS_GPE_STORM, &ec->flags)) {
     		/* check if we received SCI during transaction */
     		ec_check_sci(ec, acpi_ec_read_status(ec));
    Last edited by jdb; February 12th, 2009 at 05:12 PM. Reason: some additional thoughts

  8. #28
    Join Date
    Mar 2006
    Location
    Ohio
    Beans
    569
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Daru2 and Latest Update

    Quote Originally Posted by jdb View Post
    He changed ACPI_EC_UDELAY from 100 to 500 and then added the delay to many additional spots in the code.
    I'm a little nervous about adding all that delay especially inside a spin_lock, they are only supposed to last for a few instructions.
    Keep an eye out for anything strange.
    After loading BadBull's ppa you can get his source by:

    apt-get install linux-source-2.6.27

    There aren't near as many delays as in the original patch and no delays in a spin_lock.

    This is looking very good!!!

    jdb

  9. #29
    Join Date
    Jan 2008
    Location
    Berlin/Potsdam - Germany
    Beans
    54
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Daru2 and Latest Update

    the patch from the ppa has only one delay...
    for me it works, but at the kernel bug site is a commend from a user who had a problem with it.
    I'm a bit confused now, i reverted all patches and build a new image, but it works as well.
    please test the ppa kernel as much as you can, so we get a good feedback if the changes really work.
    sorry for my broken english

  10. #30
    Join Date
    Mar 2006
    Location
    Ohio
    Beans
    569
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Daru2 and Latest Update

    Quote Originally Posted by badbull View Post
    the patch from the ppa has only one delay...
    for me it works, but at the kernel bug site is a commend from a user who had a problem with it.
    I'm a bit confused now, i reverted all patches and build a new image, but it works as well.
    please test the ppa kernel as much as you can, so we get a good feedback if the changes really work.
    So far, so good.

    I'm looking at your diff file
    linux_2.6.28-6.17-1_2.6.28-7.21.diff
    and noticed there are no changes for ec.c but there are changes for battey.c

    Does that also fix the problem??
    Is that the patch that will probably make it into jaunty??

    Thanks,

    jdb

Page 3 of 8 FirstFirst 12345 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •