mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tobias Klausmann <klausman@schwarzvogel.de>
To: LKML <linux-kernel@vger.kernel.org>, alpha <linux-alpha@vger.kernel.org>
Subject: Re: [PATCH 00/11] rcu: Add missing RCU idle APIs on idle loop v2
Date: Wed, 12 Sep 2012 20:01:25 +0200	[thread overview]
Message-ID: <20120912180125.GA32692@kaini.schwarzvogel.de> (raw)
In-Reply-To: <20120910215244.GD21277@somewhere.redhat.com>

Hi! 

On Mon, 10 Sep 2012, Frederic Weisbecker wrote:
> > AFAICT, schedule_preempt_disabled() was only introduced in 3.4
> > and thus needs to be backported for 3.3.
> 
> Please try with this instead:
> 
> 	preempt_enable_no_resched();
> 	schedule();
> 	preempt_disable();
> 
> Thanks.

While it does compile, it hits the usual Alpha snag (3.3 onwards)
on boot:

PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffffffffffff]
pci 0000:00:11.0: quirk: [io  0x4000-0x403f] claimed by ali7101 ACPI
pci 0000:00:11.0: quirk: [io  0x5000-0x501f] claimed by ali7101 SMB
Unable to handle kernel paging request at virtual address 0000000000000000
swapper(1): Oops 1
pc = [<fffffc00008667bc>]  ra = [<fffffc0000866794>]  ps = 0000    Not tainted
pc is at nautilus_init_pci+0xd4/0x218
ra is at nautilus_init_pci+0xac/0x218
v0 = 0000000000000001  t0 = 0000000000000000  t1 = 000000000000ffff
t2 = 00000000ffffffff  t3 = fffffc0000896810  t4 = 0000000001000000
t5 = 0000000000080000  t6 = 000000000fffffff  t7 = fffffc00bf890000
s0 = fffffc00bf8b4800  s1 = 0000000000ffffff  s2 = 000000000007fffa
s3 = 0000000000000000  s4 = 0000000000000000  s5 = 0000000000002ab5
s6 = 5800000000000701
a0 = fffffc0000896b88  a1 = 0000000000000000  a2 = 0000000000000000
a3 = 000000000e000000  a4 = 0000000002000000  a5 = 0000000000000001
t8 = 0000000000000000  t9 = 0000000000000000  t10= 0000000000000001
t11= 0000000000000000  pv = fffffc000032bdc0  at = 000000000d0e4600
gp = fffffc00008e34a8  sp = fffffc00bf893e28
Disabling lock debugging due to kernel taint
Trace:
[<fffffc0000310088>] do_one_initcall+0x38/0x200
[<fffffc0000311338>] kernel_thread+0x28/0x90

This is not an RCU problem, though. AFAICT.

I tried the patches with 3.2.28 (the latest vanilla kernel that
works on this machine _at all_) but those don't have an RCU
implementation and thus, the compile fails:

  CC      arch/alpha/kernel/process.o
arch/alpha/kernel/process.c: In function 'cpu_idle':
arch/alpha/kernel/process.c:59: error: implicit declaration of function 'rcu_idle_enter'
arch/alpha/kernel/process.c:63: error: implicit declaration of function 'rcu_idle_exit'
make[1]: *** [arch/alpha/kernel/process.o] Error 1
make: *** [arch/alpha/kernel] Error 2


Regards,
Tobias

  reply	other threads:[~2012-09-12 18:01 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 14:58 Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 01/11] alpha: Fix preemption handling in idle loop Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 02/11] alpha: Add missing RCU idle APIs on " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 03/11] cris: " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 04/11] frv: " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 05/11] h8300: " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 06/11] m32r: " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 07/11] m68k: " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 08/11] mn10300: " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 09/11] parisc: " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 10/11] score: " Frederic Weisbecker
2012-08-23 14:58 ` [PATCH 11/11] xtensa: " Frederic Weisbecker
2012-08-24 21:26 ` [PATCH 00/11] rcu: Add missing RCU idle APIs on idle loop v2 Paul E. McKenney
2012-08-25  1:19   ` Ben Hutchings
2012-08-25  2:10     ` Michael Cree
2012-08-25  3:50     ` Paul E. McKenney
2012-08-25 13:16       ` Frederic Weisbecker
2012-08-25 16:18         ` Paul E. McKenney
2012-08-25 21:15           ` Michael Cree
2012-08-26  0:12             ` Paul E. McKenney
2012-08-26  9:21               ` Tobias Klausmann
2012-09-10 21:53                 ` Frederic Weisbecker
2012-09-12 18:01                   ` Tobias Klausmann [this message]
2012-09-10 21:56     ` Frederic Weisbecker
2012-09-10 22:58       ` Paul E. McKenney
2012-09-11 12:35         ` Frederic Weisbecker

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=20120912180125.GA32692@kaini.schwarzvogel.de \
    --to=klausman@schwarzvogel.de \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®