public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Hoffmann <email@christianhoffmann.info>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Long timeout when booting >= 2.6.38
Date: Mon, 16 May 2011 21:34:50 +0200	[thread overview]
Message-ID: <4DD17C5A.1050501@christianhoffmann.info> (raw)
In-Reply-To: <alpine.LFD.2.02.1105161105170.3078@ionos>


>
> Nothing to be sorry about. Thanks for providing the information. If I
> decoded the problem correctly then this just unearthed a real long
> standing bug. Does the patch below solve the problem ?
>
> Thanks,
>
> 	tglx
>
> --- linux-2.6.orig/kernel/time/tick-broadcast.c
> +++ linux-2.6/kernel/time/tick-broadcast.c
> @@ -522,10 +522,11 @@ static void tick_broadcast_init_next_eve
>    */
>   void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
>   {
> +	int cpu = smp_processor_id();
> +
>   	/* Set it up only once ! */
>   	if (bc->event_handler != tick_handle_oneshot_broadcast) {
>   		int was_periodic = bc->mode == CLOCK_EVT_MODE_PERIODIC;
> -		int cpu = smp_processor_id();
>
>   		bc->event_handler = tick_handle_oneshot_broadcast;
>   		clockevents_set_mode(bc, CLOCK_EVT_MODE_ONESHOT);
> @@ -551,6 +552,15 @@ void tick_broadcast_setup_oneshot(struct
>   			tick_broadcast_set_event(tick_next_period, 1);
>   		} else
>   			bc->next_event.tv64 = KTIME_MAX;
> +	} else {
> +		/*
> +		 * The first cpu which switches to oneshot mode sets
> +		 * the bit for all other cpus which are in the general
> +		 * (periodic) broadcast mask. So the bit is set and
> +		 * would prevent the first broadcast enter after this
> +		 * to program the bc device.
> +		 */
> +		tick_broadcast_clear_oneshot(cpu);
>   	}
>   }
>

Hi,

I booted a couple of times now, and the problem seems solved.

[    1.423793] TCP reno registered
[    1.423805] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[    1.423847] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[    1.423944] NET: Registered protocol family 1
[    1.423953] pci 0000:00:01.0: MSI quirk detected; subordinate MSI 
disabled
[    2.300205] pci 0000:01:05.0: Boot video device
[    2.300218] PCI: CLS 64 bytes, default 64
[    2.300262] Trying to unpack rootfs image as initramfs...
[    2.438632] Freeing initrd memory: 10540k freed
[    2.442368] PCI-DMA: Disabling AGP.
[    2.442501] PCI-DMA: aperture base @ c0000000 size 65536 KB
[    2.442503] PCI-DMA: using GART IOMMU.
[    2.442505] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture
[    2.446264] audit: initializing netlink socket (disabled)

Thanks a lot!!!

Kind regards,
Chris

  reply	other threads:[~2011-05-16 19:34 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-02 18:49 Long timeout when booting >= 2.6.38 Christian Hoffmann
2011-05-02 19:09 ` john stultz
2011-05-02 20:42   ` Christian Hoffmann
2011-05-02 21:10     ` Christian Hoffmann
2011-05-02 22:12       ` john stultz
2011-05-02 21:49     ` john stultz
2011-05-02 22:27       ` Christian Hoffmann
2011-05-03  0:31         ` john stultz
2011-05-03 19:33           ` Christian Hoffmann
     [not found]           ` <4DC04E15.2030308@christianhoffmann.info>
2011-05-04  1:38             ` john stultz
2011-05-04  7:12               ` Christian Hoffmann
2011-05-04 17:04                 ` Christian Hoffmann
2011-05-04  1:00         ` john stultz
2011-05-04  7:31           ` Christian Hoffmann
2011-05-04  8:37             ` Thomas Gleixner
2011-05-04 16:47               ` Christian Hoffmann
2011-05-04 17:49                 ` Thomas Gleixner
2011-05-04 19:40                   ` Christian Hoffmann
2011-05-04 20:53                     ` Thomas Gleixner
2011-05-05 17:28                       ` Christian Hoffmann
2011-05-09  8:22                         ` Thomas Gleixner
2011-05-15 20:11                           ` Christian Hoffmann
2011-05-16  9:07                             ` Thomas Gleixner
2011-05-16 19:34                               ` Christian Hoffmann [this message]
2011-05-05  1:16             ` john stultz
2011-05-05  8:25               ` Thomas Gleixner
2011-05-05 17:47                 ` Christian Hoffmann
2011-05-05 18:41                   ` Thomas Gleixner
2011-05-03 18:12 ` David

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=4DD17C5A.1050501@christianhoffmann.info \
    --to=email@christianhoffmann.info \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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