Bug 141947

Summary: Sony Vaio VGN-S560P notebook needs pci=noacpi
Product: [openSUSE] SUSE Linux 10.1 Reporter: Edwards Reed <ed.reed>
Component: KernelAssignee: Thomas Renninger <trenn>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: ed.reed, trenn
Version: Alpha 4   
Target Milestone: ---   
Hardware: i686   
OS: All   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Fresh full dmesg output

Description Edwards Reed 2006-01-07 15:51:22 UTC
From dmesg:

eervaio:/proc # dmesg | grep sonypi
sonypi command failed at drivers/char/sonypi.c : sonypi_call1 (line 594)
sonypi command failed at drivers/char/sonypi.c : sonypi_call2 (line 605)
sonypi command failed at drivers/char/sonypi.c : sonypi_call2 (line 607)
sonypi command failed at drivers/char/sonypi.c : sonypi_call1 (line 594)
sonypi: Sony Programmable I/O Controller Driverv1.26.
sonypi: detected type2 model, verbose = 0, fnkeyinit = off, camera = off, compat = off, mask = 0xffffffff, useinput = on, acpi = on
sonypi: enabled at irq=11, port1=0x1080, port2=0x1084
eervaio:/proc # uname -a
Linux eervaio 2.6.13-15.7-default #1 Tue Nov 29 14:32:29 UTC 2005 i686 i686 i386 GNU/Linux

I'm guessing this is related to the fact that none of the function keys are working, and the display doesn't dim even when /proc/acpi/sony/brightness has a value of "4".  Or not.  Powersaved is running, but restore after save-to-disk doesn't work (no display after restore seems to be complete), etc.

Will be happy to provide more information and testing.

Ed
Comment 1 Olaf Kirch 2006-01-09 16:44:39 UTC
Pavel, can you look into this please?
Comment 2 Thomas Renninger 2006-01-09 17:47:22 UTC
Timo did some work on the additional acpi modules and special laptop keys... any idea Timo?
Edwards: Do you still have a free partition to test whether you get a simliar failure on current Open Suse 10.1 distribution?
Please also add full dmesg output.
Comment 3 Edwards Reed 2006-01-09 18:07:22 UTC
Created attachment 62456 [details]
Fresh full dmesg output

I have room if I resize the Linux partition - will the yast2 partition manager do that on the fly?  I think I could resize the WinXP partition another 4GB to create room - I'll start work on that while you look this over.
Comment 4 Thomas Renninger 2006-01-09 18:33:23 UTC
What kind of ugly driver is sonypi.c?
For me it is doing the same/similar stuff sony_acpi should do, but reads/writes are predefined IO adresses instead of using ACPI abstraction?

Ahhh, the author is the same...
Does someone know who loads this modules? Shouldn't sony_acpi be preferred?
Comment 5 Edwards Reed 2006-01-09 19:34:12 UTC
I note that /etc/modprobe.conf references sonypi thus:

alias char-major-10-250  sonypi
options sonypi           minor=250

and that sony_acpi does not appear.  Should I try sony_acpi, instead, and would it also use 10/250?

Ed
Comment 6 Thomas Renninger 2006-01-10 07:59:07 UTC
Hmm, Timo told me that those extra acpi modules that are not included in mainline kernel, will not be available for 10.1. So possibly it may be even better to use sonypi. Not sure how much functionality that one has, seems as if it maps some special keys to some key codes?
Could you also try whether you have these problems on a Open Suse 10.1 (a lot changed in this module) if you still have a partition free.
I better assign this one to Timo, don't know much about the special keys on a sony.
Comment 7 Forgotten User ZhJd0F0L3x 2006-01-10 09:51:34 UTC
(In reply to comment #6)
> Hmm, Timo told me that those extra acpi modules that are not included in
> mainline kernel, will not be available for 10.1.

not true. We will either create a km_acpi_extra package or (again) patch our kernel, this is an ongoing discussion with the kernel team.
Comment 8 Edwards Reed 2006-01-10 15:09:59 UTC
I'm installing OpenSUSE 10.1 Alpha 4 on the Sony, now - note that I had to use the "Installation - ACPI Disabled" option - selecting the default installation option resulted in a freeze of the system - blank screen, no activity, required power reset.  But, with ACPI Disabled, the install is proceeding.

This is just FYI - it's a pain, and I'd rather have the ACPI enabled by default - but I thought this was relevant enough to this discussion to report it...

Ed
Comment 9 Thomas Renninger 2006-01-10 15:17:37 UTC
Argggh, this is sever!
The next OpenSuse version should have more ACPI warning/error output...
Would be nice if you could update at least the kernel and try to boot in text mode and tell us the last lines where it hangs.

However this could be hard to identify and to fix remotely or via bugzilla.
Seife: Have you already tried to install a recent Alpha on your Sony?

Timo or whoever is still working for a kernel module package for the sony_acpi driver for 10.1. However the freeze with ACPI enabled is much more sever, let's figure out this one first.
Comment 10 Edwards Reed 2006-01-10 16:22:26 UTC
Re-ran the CD1 install (default, with ACPI enabled).

Put display in text mode so I could see it run.

Kernel loaded and delivered an 
Oops:  0000 [#1]
Modules linked in:
CPU: 0
EIP:    0060:[<c0381c3b>]   Not tainted VLI
EFLAGS:  00010082  (2.6.15-rc5-git3-2-default)
EIP is at unreachable_devices+0x6b/0x90
eax: 000003a9  ebx: e0000000  ecx: e0000173  edx: 00002000
esi: 00000000  edi: 00000000  ebp: 00000217  esp: df681fb8
ds:  007b  es:  007b  ss:  0068
Process swapper (pid: 1, threadinfo=df680000 task=dfe79a50)
Stack:  25908086 c039443c df680000 00000000 00000000 c0381cc0 c02f4c7d c036480d
        c01002a0 00000000 00000000 c01002cc c01012f9 00000000 00000000 00000000
        00826042 00000000

Call Trace:
c0381cc0 pci_mmcfg_init+0x60/0x70
c036480d do_initcalls+0x4d/0xb0
c01002a0 init+0x0/0x140
c01002cc init+0x2c/0x140
c01012f9 kernel_thread_helper+0x5/0xc
Code: c0 74 2f 89 fa c1 e2 0f 09 c2 3b 15 64 6c 3e c0 74 19 8b 0d 58 25 31 c0 b8
....
This is hand typed (rather than copyed from a boot log) but I think it's accurate.

Ed
Comment 11 Forgotten User ZhJd0F0L3x 2006-01-10 17:37:39 UTC
this is a shot in the dark: try booting with "pci=noacpi" commandline. Maybe we have a "ACPI misconfigures pci" bug again....
Comment 12 Edwards Reed 2006-01-10 18:02:32 UTC
Okay - this is getting worse.

I've installed 10.1a with acpi disabled, but after the installation is complete, whe the user logs in, kde reports "Could not start kstartupconfig.  Check your installation." in what looks like a basic X-windows alert box ("okay" button in lower left corner of window).  No window manager, etc.  The X cursor is there and responds, but of course KDE isn't there.  Testing other window managers, TWM works, as does FailSafe.

Looking at boot.msg, see
<4>PCI: No IRQ known for interrupt pin A of device 0000:00:01.0.  Please try using pci=biosirq.


then further down
<4>pcie_portdrv_probe->Dev[2591:8086] has invalid IRQ.  Check vendor BIOS

I'll try booting the installation disk with pci=noacpi, and then again with "pci=biosirq" to see what happens...

the system is unuseable without KDE.  No, I didn't install GNOME.

Comment 13 Edwards Reed 2006-01-10 18:08:56 UTC
Booting the default installation option from the CD1 install disk, into text mode with pci=noacpi resulted in the same Oops, call trace 

pci_mmcfg_init+0x60/0x70
do_initcalls+0x4d/0xb0
...

same as before.  Stack is the same, except the next to last entry is all zeros instead of 00826042, and the last entry is 00000049 instead of all zeros.

Comment 14 Edwards Reed 2006-01-10 18:41:44 UTC
Booting the default installation option from the CD1 install disk, into text mode with pci=biosirq results in a very similar Oops.  Registers are a little different, but the call stack looks the same.  Yep - the last two stack entries are different, but all else is the same (registers, threadinfo, task, and other stack values).
Comment 15 Edwards Reed 2006-01-10 18:45:51 UTC
From BIOS Setup on the box:

BIOS Version:     R0103V0
EC BIOS Version:  RK103V0
Video BIOS Version: V0N44_55

Machine Name:     VGN-S560P
Total Memory:     512MB

I don't figure you need the UUDI nor Serial Number

LCD Expansion is "NO" on the Advanced page.
Comment 16 Edwards Reed 2006-01-10 18:47:56 UTC
And, once again, though this is being reported under a SuSE Linux 10 bug, we're talking about the OpenSuSE 10.1 Alpha 4 installation kernel - the one that is the "normal" Installation kernel from the CD1 bootable disk.
Comment 17 Edwards Reed 2006-01-10 19:07:55 UTC
Okay - so the issue isn't restricted to OpenSuSE 10.1a4 -

Attempting to use the default installation mode for SuSE Linux Pro 9.3, the default installation kernel loads, I can escape the splash screen and watch it's progress until it reaches

"Activating PCMCIA devices..."

at which point the cursor disappears and the system is frozen.

At this point I'm going back and trying my SUSE Linux 10.0 install disk to see how I got that installed - did I have to turn acpi off (that would explain the problems sonypi is having ;-)

Comment 18 Edwards Reed 2006-01-10 19:33:22 UTC
Nope - the SuSE Linux 10.0 default install boots and runs okay.  But, with the acpi problems reported at the beginning of this thread.

summary:

Sony notebook VGN-S560P, with BIOS details listed above

SuSE Linux Pro 9.3 default installation - freezes trying to activate PCMCIA devices

SuSE LInux 10.0 (Final) - default installation works, but acpi functionality (buttons support, dim/bright display) don't work

SuSE LInux 10.1 Alpha4 - default installation issues a kernel Oops (detailed above).

SuSE Linux 10.1 Alpha4 - acpi disabled installation proceeds, but KDE fails to come up.

Ed
Comment 19 Forgotten User ZhJd0F0L3x 2006-01-10 20:10:05 UTC
(In reply to comment #12)
> Okay - this is getting worse.
> 
> I've installed 10.1a with acpi disabled, but after the installation is
> complete, whe the user logs in, kde reports "Could not start kstartupconfig. 
> Check your installation." in what looks like a basic X-windows alert box
> ("okay" button in lower left corner of window).  No window manager, etc.  The X
> cursor is there and responds, but of course KDE isn't there.  Testing other
> window managers, TWM works, as does FailSafe.

see
http://www.opensuse.org/Bugs:Most_Annoying_Bugs#SUSE_Linux_10.1_Alpha4
Comment 20 Forgotten User ZhJd0F0L3x 2006-01-10 20:16:32 UTC
(In reply to comment #18)
> Nope - the SuSE Linux 10.0 default install boots and runs okay.  But, with the
> acpi problems reported at the beginning of this thread.
> 
> summary:

> SuSE LInux 10.0 (Final) - default installation works, but acpi functionality
> (buttons support, dim/bright display) don't work

the sony_acpi module seems loaded on 10.0 (otherwise you would not have the brightness file). sonypi seems to be nonfunctional, but maybe it interferes with sony_acpi. You could try to remove the module (move it from /lib/modules/...../sonypi.ko to /tmp), reboot and try if setting the brightness works after that. On the sony i used, i had no luck with special buttons at all, but at least setting the brightness worked.

Generally, sony machines seem to be a big mess and the vendor refuses to give any support. Something to consider when buying a new machine. There are definitely vendors whose machines don't give you so much trouble ;-)
Comment 21 Edwards Reed 2006-01-10 22:25:29 UTC
Okay - I'm back to SuSE Linux 10.0

Have commented out the sonypi entry and it's associated argument from /etc/modprobe.conf.

I know ACPI is working because when I close the lid it starts the screen saver, just as I asked.

There is a /proc/acpi/sony directory with two 'file' entries:  brightness and brightness_default.

when I echo 4 > brighness
nothing happens.

when I press fn-F5 (dimmer) nothing happens

There is a /var/log/acpid file here.  It contains event notifications about the LID0 event closing and opening.  There is 1 client rule loaded, here.

The dmesg file indicates that the Sony Notebook Control Driver v0.2 successfully installed, following notices of what look like ACPI event registration entries for

ACAD, BAT1, LID0 and PWRB.

Those things all seem to work, too.

So, the sonypi messages are gone (good, cause it didn't get loaded).  But no brighness control, here.

Ed
Comment 22 Forgotten User ZhJd0F0L3x 2006-01-11 07:24:41 UTC
try reading out the brightness file with "cat" - it might be that 4 is just the default so you don't see any changes. IIRC sony_acpi takes values from 1 to 8, so try echoing 1 and 8 into it, this should give a recognizable difference.
If we cannot get this to work in 10.0 there is not too much hope for 10.1 since the sony module has not changed (it might benefit from general acpi fixes though, so not everything is lost :-)
Comment 23 Edwards Reed 2006-01-11 12:41:42 UTC
yes, I use cat to read out brightness - it's usual value is 8.  Changing it makes no difference.

I also found where the sonypi module is used - there's a Sony Vaio Laptop control center system configuration applet for looking at battery capacity, how many batteries you have loaded, etc. that uses sonypi instead of sony_acpi.

Finally, I realize that I do, indeed, have acpi=no on the kernel boot line, which is odd, since powersaved does, indeed, report battery stuff correctly, and the lid  switch works.

For today, I'll try modulating the kernel command line acpi value to see what breaks.  My guess is that the install of 10.0 froze up with acpi enabled at all...

Ed
Comment 24 Edwards Reed 2006-01-11 12:45:32 UTC
(In reply to comment #23)

> Finally, I realize that I do, indeed, have acpi=no on the kernel boot line,
> which is odd, since powersaved does, indeed, report battery stuff correctly,
> and the lid  switch works.

Okay, that's not true - I just reviewed the boot line and acpi is enabled on 10.0.  I had to turn it off on both 9.3 and 10.0.42, but 10.0 has it on.  Sorry for the confusion - 

Comment 25 Forgotten User ZhJd0F0L3x 2006-01-11 12:48:22 UTC
AFAICT, sonypi will not work on your machine, it only worked on older models.
"acpi=no" will have no effect, only "acpi=off" will switch acpi off, so it is no wonder that lid switch and battery reporting works.

For sony_acpi not working, you could try to contact the author of this module, Stelian Pop directly via his website http://www.popies.net/.
Maybe it is just another model string or AML method that needs to be added to the driver; i simply don't know that.
Comment 26 Edwards Reed 2006-01-11 12:55:09 UTC
Thank you, Stefan - I'll try Stelian Pop's site.

Shall we close this one bug out?  If the Oops issues reported above need to live on, they should be associated with a 10.1 bug, not this one.
Comment 27 Thomas Renninger 2006-01-11 14:01:41 UTC
Thanks for the detailed infos.
Just leave it open, I will change the subject and see, whether I can fix the pci=noacpi requirement. Options like this could result in later hangs or non-working devices like you reported with your pcmcia device.
Even worse, users are confused if they put in the installation CD and end up in an early freeze..., specially when it's the machine they like to access the internet with and can't google.
Would be nice if you eventually could test a kernel without pci=noacpi in some days if I can come up with something.
However, this could take some time, workload grew the last days ...
Comment 28 Edwards Reed 2006-01-11 14:15:03 UTC
np - I'll be happy to try later versions of the kernel and to help out.  I have a small partition dedicated to 10.1 with which to test.

I've also pinged Stelian Pop to see if the trouble I had with sonypi can be addressed.  It looks to me as though sonypi should (and generally, it does) work with sony_acpi, but that it's sonypi_enable call is failing (that's what is causing the 4 error messages I'm seeing in syslog), and will report back what we find.

Keep me in the loop.
Comment 29 Edwards Reed 2006-01-12 14:30:41 UTC
Status update:

1) running 2.6.15-rc5-git3-2-default kernel, acpi=off is still required, but...

2) sonypi loaded and the kde Sony Laptop applet works, giving correct Battery and AC Power indications, and

3) Stelian Pop (stelian@popies.net) directed me towards http://www.acc.umu.se/erikw/program/smartdimmer.0.1.tar.bz2 which does command the brighness of the display up and down

The smartdimmer README indicates its changes will be incorporated into the nvclock "in the near future".

So, the Sony laptop brightness can be commanded (but I just noticed my mouse cursor disappeared...will test further).

sonypi works on 10.1 (without issuing error messages to syslog) (it now detects a type 3 model, so the hardware has changed).

And 10.1 definitely needs acpi=off to work.  

I've downloaded the kotd from 11 Jan but haven't tested it, yet.

FYI.
Comment 30 Edwards Reed 2006-01-12 15:30:54 UTC
Confirming that SuSE 10.1 (2.6.15-rc5-git3-2-default) loses it's mouse cursor when you use smartdimmer to dim and brighten the display.  Refreshing the desktop doesn't recover it.  SuSE 10 (linux-2.6.13-15.7-default), though, doesn't lose the mouse.

Ah, I'm not at all sure I have the nVidia proprietary drivers installed on 10.1, and I know I do on 10.0.  Since online updates aren't working on 10.1, yet, I hadn't pulled them down.

Well, the 10.0 fetchnvidia.sh fails to run on the 10.1 rc5-git3 kernel (it fails to successfully build a kernel interface for the kernel, and it fails the compilation - but that's a separate issue).

So, I can't test the nVidia proprietary driver on 10.1 (given what I know, now).

'nuf.
Comment 31 Edwards Reed 2006-01-23 15:31:07 UTC
Any word on the status on this?  I've tried the network boot of the OpenSuSE 10.1 Beta1, but the install failed as it tried to find suggested software packages, so I'm downloading the 5 CDs, now.

Any progress on this to report, or are y'all waiting on me for something?

Ed
Comment 32 Thomas Renninger 2006-01-23 15:37:58 UTC
For the pci=noacpi issue, it is worth to wait a bit.
There have been a lot modifications in the ACPI tree, that have not yet been commited. We are currently discussing which patches are necessary and safe to add and which will not make it in SL 10.1...
For the pci stuff, it is likely that it is not included as it potentially may break more machines than it heals. But I cannot say anything for sure at the moment.
Comment 33 Forgotten User ZhJd0F0L3x 2006-01-23 16:22:19 UTC
regarding the brightness setting, i have heard rumors that there are new sony models which are not (yet?) supported by the sony_acpi module, but unfortunately i do not know any details.
Comment 34 Helfried Behrendt 2006-02-13 19:35:38 UTC
for your heard Brightness is working fine with a Vaio VGN-A197 but not the additional Funktionkeys. Only with ke keyboard buttons.
Comment 35 Thomas Renninger 2006-02-21 19:09:11 UTC
There changed some things in acpi code, it's worth to try the latest Beta kernel for 10.1 from here:
ftp.suse.com/pub/projects/kernel/kotd/i386/HEAD/kernel-default.i586.rpm

If it does not work, it's hard to debug the pci=noacpi stuff...
Can you boot the kernel with sysreq=1 option and then hit Sysrq-T button and try to catch the latest invoked function(s).
Seife, your vaio boots without pci=noacpi?
Comment 36 Thomas Renninger 2006-03-21 16:07:21 UTC
Closing for now as there hasn't been an answer for a longer time.
Please reopen if you still see the bug and you can provide info.
Best would be a serial console output.
Comment 37 Edwards Reed 2006-03-28 04:58:21 UTC
I can't tell you how happy I am to have read about the problems with Beta 4, and to know that I just didn't have time to check this out, then ;-)

I'm happy to report that I'm installing Beta8 on the system now, and doing so without invoking the installer without ACPI, which is to say, I'm running the normal installation image, presumably with ACPI included.

Further, the installation completed without incident, the system is booted and appears to be working fine.  dmesg has lots of satisfying ACPI messages in it.

I think you fixed it.

Thanks.
Comment 38 Edwards Reed 2006-03-28 05:00:10 UTC
Reopen to see if I can close it "fixed".
Comment 39 Edwards Reed 2006-03-28 05:01:03 UTC
Beta8 is working fine.
Comment 40 Forgotten User ZhJd0F0L3x 2006-03-28 05:55:59 UTC
cool, thanks for the report.
I have heard rumours about a driver for newer sony models which might help setting the brightness etc. on your machine, but don't have any details, sorry. But there seems to be still some hope :-)