linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bug: acpi ata_bay dock reminds undocked
@ 2014-04-29 20:16 Pali Rohár
  2014-04-29 20:55 ` Rafael J. Wysocki
  0 siblings, 1 reply; 10+ messages in thread
From: Pali Rohár @ 2014-04-29 20:16 UTC (permalink / raw)
  To: Shaohua Li, Len Brown, Rafael J. Wysocki; +Cc: linux-acpi, linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 1377 bytes --]

Hello,

I have problem with sysfs entry docked

/sys/bus/platform/devices/dock.0/docked

for my media bay DVD drive on notebook Dell Latitude E6440.

After booting linux kernel docked is set to 1 (which is correct, 
DVD hw is inserted into sata dock). When I undock it via sysfs 
entry

/sys/bus/platform/devices/dock.0/undock

then kernel remove DVD device from system (no /dev/sr0 anymore) 
and docked sysfs entry is set to 0.

When I press eject button on DVD drive, I hear some spin up and 
kernel detect DVD device again (also udev create /dev/sr0). But 
docked sysfs entry remains set to 0. It will never be set back to 
1 - only after reboot.

So this looks like bug somewhere and probably in linux acpi dock 
driver... Do you know to solve this problem? More applications 
checking docked sysfs entry for dock presence and returning 0 
will mislead them.

Here is some info from sysfs about dock:

$ grep "" /sys/bus/platform/devices/dock.0/*
/sys/bus/platform/devices/dock.0/docked:0
/sys/bus/platform/devices/dock.0/flags:32
/sys/bus/platform/devices/dock.0/modalias:acpi:LNXIOBAY:
/sys/bus/platform/devices/dock.0/type:ata_bay
/sys/bus/platform/devices/dock.0/uevent:MODALIAS=acpi:LNXIOBAY:

If you need some more info let me know. I would be happy to have 
working docked sysfs entry.

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-04-29 20:16 bug: acpi ata_bay dock reminds undocked Pali Rohár
@ 2014-04-29 20:55 ` Rafael J. Wysocki
  2014-04-29 21:00   ` Pali Rohár
  0 siblings, 1 reply; 10+ messages in thread
From: Rafael J. Wysocki @ 2014-04-29 20:55 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Shaohua Li, Len Brown, linux-acpi, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1608 bytes --]

On Tuesday, April 29, 2014 10:16:41 PM Pali Rohár wrote:
> Hello,

Hi,

> I have problem with sysfs entry docked
> 
> /sys/bus/platform/devices/dock.0/docked
> 
> for my media bay DVD drive on notebook Dell Latitude E6440.
> 
> After booting linux kernel docked is set to 1 (which is correct, 
> DVD hw is inserted into sata dock). When I undock it via sysfs 
> entry
> 
> /sys/bus/platform/devices/dock.0/undock
> 
> then kernel remove DVD device from system (no /dev/sr0 anymore) 
> and docked sysfs entry is set to 0.
> 
> When I press eject button on DVD drive, I hear some spin up and 
> kernel detect DVD device again (also udev create /dev/sr0). But 
> docked sysfs entry remains set to 0. It will never be set back to 
> 1 - only after reboot.
> 
> So this looks like bug somewhere and probably in linux acpi dock 
> driver... Do you know to solve this problem? More applications 
> checking docked sysfs entry for dock presence and returning 0 
> will mislead them.
> 
> Here is some info from sysfs about dock:
> 
> $ grep "" /sys/bus/platform/devices/dock.0/*
> /sys/bus/platform/devices/dock.0/docked:0
> /sys/bus/platform/devices/dock.0/flags:32
> /sys/bus/platform/devices/dock.0/modalias:acpi:LNXIOBAY:
> /sys/bus/platform/devices/dock.0/type:ata_bay
> /sys/bus/platform/devices/dock.0/uevent:MODALIAS=acpi:LNXIOBAY:
> 
> If you need some more info let me know. I would be happy to have 
> working docked sysfs entry.

Which kernel version(s) have you tried?


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-04-29 20:55 ` Rafael J. Wysocki
@ 2014-04-29 21:00   ` Pali Rohár
  2014-04-29 21:35     ` Rafael J. Wysocki
  0 siblings, 1 reply; 10+ messages in thread
From: Pali Rohár @ 2014-04-29 21:00 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Len Brown, linux-acpi, linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 157 bytes --]

On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:
> Which kernel version(s) have you tried?

3.15-rc3

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-04-29 21:00   ` Pali Rohár
@ 2014-04-29 21:35     ` Rafael J. Wysocki
  2014-04-30  9:24       ` Pali Rohár
  0 siblings, 1 reply; 10+ messages in thread
From: Rafael J. Wysocki @ 2014-04-29 21:35 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Len Brown, linux-acpi, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

On Tuesday, April 29, 2014 11:00:01 PM Pali Rohár wrote:
> On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:
> > Which kernel version(s) have you tried?
> 
> 3.15-rc3

Does it work with 3.14(.x) by chance?


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-04-29 21:35     ` Rafael J. Wysocki
@ 2014-04-30  9:24       ` Pali Rohár
  2014-05-03 22:02         ` Pali Rohár
  2014-05-11 15:49         ` Pali Rohár
  0 siblings, 2 replies; 10+ messages in thread
From: Pali Rohár @ 2014-04-30  9:24 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Len Brown, linux-acpi, linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 395 bytes --]

On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
> On Tuesday, April 29, 2014 11:00:01 PM Pali Rohár wrote:
> > On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:
> > > Which kernel version(s) have you tried?
> > 
> > 3.15-rc3
> 
> Does it work with 3.14(.x) by chance?

Tested with 3.14 and 3.8. Same problem, not working.

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-04-30  9:24       ` Pali Rohár
@ 2014-05-03 22:02         ` Pali Rohár
  2014-05-11 15:49         ` Pali Rohár
  1 sibling, 0 replies; 10+ messages in thread
From: Pali Rohár @ 2014-05-03 22:02 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Len Brown, linux-acpi, linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 507 bytes --]

On Wednesday 30 April 2014 11:24:50 Pali Rohár wrote:
> On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
> > On Tuesday, April 29, 2014 11:00:01 PM Pali Rohár wrote:
> > > On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:
> > > > Which kernel version(s) have you tried?
> > > 
> > > 3.15-rc3
> > 
> > Does it work with 3.14(.x) by chance?
> 
> Tested with 3.14 and 3.8. Same problem, not working.

Rafael, any idea what to do now?

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-04-30  9:24       ` Pali Rohár
  2014-05-03 22:02         ` Pali Rohár
@ 2014-05-11 15:49         ` Pali Rohár
  2014-05-12  0:00           ` Rafael J. Wysocki
  1 sibling, 1 reply; 10+ messages in thread
From: Pali Rohár @ 2014-05-11 15:49 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Len Brown, linux-acpi, linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 527 bytes --]

On Wednesday 30 April 2014 11:24:50 Pali Rohár wrote:
> On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
> > On Tuesday, April 29, 2014 11:00:01 PM Pali Rohár wrote:
> > > On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:
> > > > Which kernel version(s) have you tried?
> > > 
> > > 3.15-rc3
> > 
> > Does it work with 3.14(.x) by chance?
> 
> Tested with 3.14 and 3.8. Same problem, not working.

BUMP!

Rafael, do you need some other information?

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-05-11 15:49         ` Pali Rohár
@ 2014-05-12  0:00           ` Rafael J. Wysocki
  2014-05-12  5:48             ` Pali Rohár
  0 siblings, 1 reply; 10+ messages in thread
From: Rafael J. Wysocki @ 2014-05-12  0:00 UTC (permalink / raw)
  To: Pali Rohár; +Cc: Len Brown, linux-acpi, linux-kernel

On Sunday, May 11, 2014 05:49:17 PM Pali Rohár wrote:
> 
> --nextPart2204083.pLeiedbUui
> Content-Type: Text/Plain;
>   charset="utf-8"
> Content-Transfer-Encoding: quoted-printable
> 
> On Wednesday 30 April 2014 11:24:50 Pali Roh=C3=A1r wrote:
> > On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
> > > On Tuesday, April 29, 2014 11:00:01 PM Pali Roh=C3=A1r wrote:
> > > > On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:
> > > > > Which kernel version(s) have you tried?
> > > >=20
> > > > 3.15-rc3
> > >=20
> > > Does it work with 3.14(.x) by chance?
> >=20
> > Tested with 3.14 and 3.8. Same problem, not working.
> 
> BUMP!
> 
> Rafael, do you need some other information?

I'll take care of this when I have the time, OK?

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-05-12  0:00           ` Rafael J. Wysocki
@ 2014-05-12  5:48             ` Pali Rohár
  2014-08-12 11:53               ` Pali Rohár
  0 siblings, 1 reply; 10+ messages in thread
From: Pali Rohár @ 2014-05-12  5:48 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Len Brown, linux-acpi, linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 1005 bytes --]

On Monday 12 May 2014 02:00:29 Rafael J. Wysocki wrote:
> On Sunday, May 11, 2014 05:49:17 PM Pali Rohár wrote:
> > --nextPart2204083.pLeiedbUui
> > Content-Type: Text/Plain;
> > 
> >   charset="utf-8"
> > 
> > Content-Transfer-Encoding: quoted-printable
> > 
> > On Wednesday 30 April 2014 11:24:50 Pali Roh=C3=A1r wrote:
> > > On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
> > > > On Tuesday, April 29, 2014 11:00:01 PM Pali Roh=C3=A1r 
wrote:
> > > > > On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki 
wrote:
> > > > > > Which kernel version(s) have you tried?
> > > > >
> > > > >=20
> > > > >
> > > > > 3.15-rc3
> > > >
> > > >=20
> > > >
> > > > Does it work with 3.14(.x) by chance?
> > >
> > >=20
> > >
> > > Tested with 3.14 and 3.8. Same problem, not working.
> > 
> > BUMP!
> > 
> > Rafael, do you need some other information?
> 
> I'll take care of this when I have the time, OK?

Ok, I will wait.

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bug: acpi ata_bay dock reminds undocked
  2014-05-12  5:48             ` Pali Rohár
@ 2014-08-12 11:53               ` Pali Rohár
  0 siblings, 0 replies; 10+ messages in thread
From: Pali Rohár @ 2014-08-12 11:53 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Len Brown, linux-acpi, linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 1173 bytes --]

On Monday 12 May 2014 07:48:16 Pali Rohár wrote:
> On Monday 12 May 2014 02:00:29 Rafael J. Wysocki wrote:
> > On Sunday, May 11, 2014 05:49:17 PM Pali Rohár wrote:
> > > --nextPart2204083.pLeiedbUui
> > > Content-Type: Text/Plain;
> > > 
> > >   charset="utf-8"
> > > 
> > > Content-Transfer-Encoding: quoted-printable
> > > 
> > > On Wednesday 30 April 2014 11:24:50 Pali Roh=C3=A1r wrote:
> > > > On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki 
wrote:
> > > > > On Tuesday, April 29, 2014 11:00:01 PM Pali Roh=C3=A1r
> 
> wrote:
> > > > > > On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki
> 
> wrote:
> > > > > > > Which kernel version(s) have you tried?
> > > > > >
> > > > > >=20
> > > > > >
> > > > > > 3.15-rc3
> > > > >
> > > > >=20
> > > > >
> > > > > Does it work with 3.14(.x) by chance?
> > > >
> > > >=20
> > > >
> > > > Tested with 3.14 and 3.8. Same problem, not working.
> > > 
> > > BUMP!
> > > 
> > > Rafael, do you need some other information?
> > 
> > I'll take care of this when I have the time, OK?
> 
> Ok, I will wait.

Rafael, ping. Can you look at it?

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-12 11:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-29 20:16 bug: acpi ata_bay dock reminds undocked Pali Rohár
2014-04-29 20:55 ` Rafael J. Wysocki
2014-04-29 21:00   ` Pali Rohár
2014-04-29 21:35     ` Rafael J. Wysocki
2014-04-30  9:24       ` Pali Rohár
2014-05-03 22:02         ` Pali Rohár
2014-05-11 15:49         ` Pali Rohár
2014-05-12  0:00           ` Rafael J. Wysocki
2014-05-12  5:48             ` Pali Rohár
2014-08-12 11:53               ` Pali Rohár

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).