All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Kinard <kumba@gentoo.org>
To: linux-mips@linux-mips.org
Subject: Re: IP30: SMP, Almost there?
Date: Wed, 20 May 2015 01:23:31 -0400	[thread overview]
Message-ID: <555C1A53.9010803@gentoo.org> (raw)
In-Reply-To: <5559D483.905@gentoo.org>

On 05/18/2015 08:01, Joshua Kinard wrote:
> On 05/18/2015 01:39, Joshua Kinard wrote:
>> So I've gotten the second CPU in Octane to "tick" again...somehow.  I am
>> certain someone's cat went missing in the process...
>>
>> Anyways, it's booting into an initramfs and dying almost immediately with
>> errors from do_page_fault:

I've stripped the kernel config down to practically nothing (9MB w/ debugging,
-Os, and a small initramfs), yet still, when CPU1 starts up and starts
scheduling, I am running into "scheduling while atomic" warnings (due to
enabling that option in kernel debugging).  CPU0 then joins in with scheduling
while atomic.  I've tried switching to mutexes instead of spinlocks, but no
dice.  It seems to be stemming from core kernel code, but I know the problem
has to be in the IP30 SMP code.

I've looked at all of the other MIPS SMP implementations, and by far the one
that looks the closest is the Sibyte 1250 SMP code.  Everything else is far too
different, what with multicores and multithreading.  However, adopting most of
the Sibyte semantics for CPU1 bringup doesn't appear to work.  Only thing I
haven't done yet is handle CPU affinity.

Do I need to define the irq_set_affinity() function pointer in struct irq_chip?
 IP27 doesn't have this and no real ill effects w/ SMP are seen on that system
(just the random hardlock due to that vmscan BUG() or disk I/O).  Am I not
masking all IRQs correctly and running into a case of recursive interrupts?  Is
there still a way to halt all interrupts globally (the old big lock) and use
that as a debugging aid?

--J

  reply	other threads:[~2015-05-20  5:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18  5:39 IP30: SMP, Almost there? Joshua Kinard
2015-05-18 12:01 ` Joshua Kinard
2015-05-20  5:23   ` Joshua Kinard [this message]
2015-05-21  6:00     ` Joshua Kinard
2015-05-22 12:01       ` Maciej W. Rozycki
2015-05-22 17:11         ` Ralf Baechle
2015-05-23 22:52           ` Joshua Kinard
2015-05-24 14:25             ` Maciej W. Rozycki
2015-05-22 16:38       ` Ralf Baechle
2015-05-23 22:57         ` Joshua Kinard
2015-05-22 16:25   ` Ralf Baechle
2015-05-24  3:17 ` Joshua Kinard
2015-06-01  5:08   ` Joshua Kinard
2015-06-01  6:00     ` IP30: SMP, Almost there! Joshua Kinard
2015-06-01 19:32   ` IP30: SMP, Almost there? Ralf Baechle
2015-06-02  5:31     ` Joshua Kinard

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=555C1A53.9010803@gentoo.org \
    --to=kumba@gentoo.org \
    --cc=linux-mips@linux-mips.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.