Skip to contentSkip to conversation

3.18.9-rt4

DISCUSSION Ralf Mardorf 4 participants 6 messages Mar 13, 2015 – Mar 17, 2015 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

Hi,

all kernels >= 3.14.34-rt31 I tested, don't finish startup on my machine [1]. This are the last messages of startups for 4 different startups for 3.18.9-rt4.

Picture URLs:
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_2.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_3.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_4.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_5.jpg

The last kernel I tested that does work is 3.14.28-rt25.

Regards,
Ralf

[1]

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: HDSPMx579bcc [RME AIO_579bcc], device 0: RME AIO [RME AIO]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: EWX2496 [TerraTec EWX24/96], device 0: ICE1712 multi [ICE1712 multi]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: EWX2496_1 [TerraTec EWX24/96], device 0: ICE1712 multi [ICE1712 multi]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

AMD BE-2350 Athlon X2 Dual-Core Processor
ASUS M2A-VM HDMI motherboard, but the HDMI card isn't connected Integrated ATI Radeon X1250-based graphics

http://www.asus.com/Motherboards/M2AVM_HDMI/specifications/

# dmidecode 2.12
SMBIOS 2.4 present.
60 structures occupying 1782 bytes.
Table at 0x000F0000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: Phoenix Technologies, LTD
Version: ASUS M2A-VM HDMI ACPI BIOS Revision 2302 Release Date: 02/05/2009
[snip]
Handle 0x0005, DMI type 4, 35 bytes
Processor Information
Socket Designation: Socket AM2
Type: Central Processor
Family: Athlon 64
Manufacturer: AMD
ID: B2 0F 06 00 FF FB 8B 17
Signature: Family 15, Model 107, Stepping 2 Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call)
MTRR (Memory type range registers) PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported) PAT (Page attribute table)
PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2) HTT (Multi-threading)
Version: AMD Athlon(tm) X2 Dual Core Processor BE-2350
Voltage: 1.2 V
External Clock: 200 MHz
Max Speed: 3800 MHz
Current Speed: 2100 MHz
Status: Populated, Enabled
Upgrade: Socket 940
L1 Cache Handle: 0x000B
L2 Cache Handle: 0x000C
L3 Cache Handle: Not Provided
Serial Number:
Asset Tag:
Part Number:
[snip]

There's no newer BIOS version, excepted of a beta version available.

Beta Version 5001

Description M2A-VM BIOS 5001
1. Beta Bios for Supporting AM3 CPUs.
2. System still able to POST when set CPU Multiplier to 35X, but
actual frequency will not change.
3. Due to chipset limitation, Max
HT Link is 1000MHz only.
4. It will no display if downgrade Bios to
lower version. File Size
550,51 (KBytes) 2010.04.14 update
Download from
Global (DLM) Global
Version 2302

Description M2A-VM HDMI BIOS 2302
Fix the problem that system may hang on post when use AM2 cpu. File Size
540,14 (KBytes) 2009.02.13 update
Download from
Global (DLM) Global

http://support.asus.com/Download.aspx?SLanguage=en&m=M2A-VM+HDMI&p=1&s=24
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw

3.18.9-rt4 kernel panic - Was: 3.18.9-rt4

Quoted 11 lines · Ralf Mardorf

all kernels >= 3.14.34-rt31 I tested, don't finish startup on my machine [1]. This are the last messages of startups for 4 different startups for 3.18.9-rt4.

Picture URLs:
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_2.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_3.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_4.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_5.jpg

The last kernel I tested that does work is 3.14.28-rt25.

Hi,

this morning the messages finished with a kernel panic.

Picture URL:
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_6.jpg

Regards,
Ralf

#2 lore raw

Re: 3.18.9-rt4 kernel panic - Was: 3.18.9-rt4

Quoted 11 lines · On Sat, 14 Mar 2015 10:43:36 +0100 Ralf Mardorf <[email protected]>…
Quoted 10 lines · Ralf Mardorf

all kernels >= 3.14.34-rt31 I tested, don't finish startup on my machine [1]. This are the last messages of startups for 4 different startups for 3.18.9-rt4.

Picture URLs:
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_2.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_3.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_4.jpg
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_5.jpg

Quoted 8 lines
Quoted 1 line

The last kernel I tested that does work is 3.14.28-rt25.

Hi,

this morning the messages finished with a kernel panic.

Picture URL:
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_6.jpg

Let me try to add some information that I think might be relevant to the problem.

I remember that you had boot problems a while ago, together with a couple of other AMD cpu users. IIRC it just affected a few specific AMD cpus. AFAIK, you could not succesfully boot any kernel starting with with 3.12.6-rt9, and I have another report from another afflicted user saying that the boot problem was fixed by reverting:

timers-do-not-raise-softirq-unconditionally.patch timer-Raise-softirq-if-there-s-irq_work.patch timer-rt-Always-raise-the-softirq-if-there-s-irq_wor.patch

This might be significant, as these patches are in play again, at least on 3.18-rt.

Try to revert those patches and see if the kernel can boot.

Signature · 1 line
   Joakim
#3 lore raw

Re: 3.18.9-rt4 kernel panic - Was: 3.18.9-rt4

Quoted 6 lines · * Joakim Hernberg | 2015-03-15 14:51:53 [+0100]:

I remember that you had boot problems a while ago, together with a couple of other AMD cpu users. IIRC it just affected a few specific AMD cpus. AFAIK, you could not succesfully boot any kernel starting with with 3.12.6-rt9, and I have another report from another afflicted user saying that the boot problem was fixed by reverting:

Quoted 6 lines

timers-do-not-raise-softirq-unconditionally.patch timer-Raise-softirq-if-there-s-irq_work.patch timer-rt-Always-raise-the-softirq-if-there-s-irq_wor.patch

This might be significant, as these patches are in play again, at least on 3.18-rt.

As of v3.18-RT these patches are revereted. In two pix I see cpufreq with k8. My AMD here uses acpi-cpufreq so I never run into this. So maybe I find something once I look…. I the meantime you could you please drop cpufreq from your .config and try again?

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Re: 3.18.9-rt4 kernel panic - Was: 3.18.9-rt4

In reply to Ralf Mardorf
Quoted 7 lines · * Ralf Mardorf | 2015-03-14 10:43:36 [+0100]:
Quoted 6 lines · Ralf Mardorf

all kernels >= 3.14.34-rt31 I tested, don't finish startup on my machine [1]. This are the last messages of startups for 4 different startups for 3.18.9-rt4.

Picture URLs:
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_2.jpg

here we have
powernowk8_target_fn() -> transition_frequency_fidvid() and then at the
end:
932 policy = cpufreq_cpu_get(smp_processor_id());
933 cpufreq_cpu_put(policy);

and I think the explosion starts in cpufreq_cpu_put() because I have no idea why page_fault() shows up in the backtrace.

Quoted 1 line
Quoted 1 line

http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_3.jpg

some timer thingy, most likely follow-up

Quoted 1 line
Quoted 1 line

http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_4.jpg

looks like _2

Quoted 1 line
Quoted 1 line

http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_5.jpg

follow up

Quoted 5 lines
Quoted 2 lines

The last kernel I tested that does work is 3.14.28-rt25.

Picture URL:
http://picpaste.com/3.18.9-rt4.x86_64.end_of_startup_6.jpg

dunno.

I assume the crash occurs because cpufreq_cpu_put() returns a NULL pointer. I have no idea why this happens or if it happens at all. What happens if you apply this:

drivers/cpufreq/powernow-k8.c +2 -1
index f9ce7e4bf0fe..ddf3a9006339 100644
@@ -930,7 +930,8 @@ static int transition_frequency_fidvid(struct powernow_k8_data *data,
 	freqs.new = find_khz_freq_from_fid(fid);
 
 	policy = cpufreq_cpu_get(smp_processor_id());
-	cpufreq_cpu_put(policy);
+	if (policy)
+		cpufreq_cpu_put(policy);
 
 	cpufreq_freq_transition_begin(policy, &freqs);
 	res = transition_fid_vid(data, fid, vid);
Quoted 2 lines

Regards,
Ralf

Sebastian

#5 lore raw

Re: 3.18.9-rt4 kernel panic - Was: 3.18.9-rt4

Quoted 4 lines · Sebastian Andrzej Siewior

What happens if you apply this:

(quoted diff) +0 -0

b/drivers/cpufreq/powernow-k8.c index f9ce7e4bf0fe..ddf3a9006339 100644

Thank you,

I'm doing an audio production at the moment. I tagged this and the other mails as todo. Building and testing a kernel unfortunately can't be done at the same time.

To be continued...