[opensuse-kernel] problem with crystalhd kernel module

Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not. Does anybody know how to fix this? Thanks, Giacomo -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices. Giacomo -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too. I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2. Can anyone add the target openSUSE 12.2 to OBS hardware project? Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself. Takashi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2.
Can anyone add the target openSUSE 12.2 to OBS hardware project?
Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself.
The old crystalhd driver fails to compile for 12.2. kernel 3.4 doesn't have anymore <asm/system.h> In order to make the driver compile you have to remove the line: #include <asm/system.h> from crystalhd_lnx.h and crystalhd_misc.h I have rebuild the driver myself and installed. Now mplayer works again in 12.2 Giacomo -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

At Thu, 13 Sep 2012 11:04:11 -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2.
Can anyone add the target openSUSE 12.2 to OBS hardware project?
Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself.
The old crystalhd driver fails to compile for 12.2. kernel 3.4 doesn't have anymore <asm/system.h> In order to make the driver compile you have to remove the line: #include <asm/system.h>
from crystalhd_lnx.h and crystalhd_misc.h
I have rebuild the driver myself and installed. Now mplayer works again in 12.2
Good, could you submit a fix? thanks, Takashi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Thu, Sep 13, 2012 at 05:05:36PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 11:04:11 -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2.
Can anyone add the target openSUSE 12.2 to OBS hardware project?
Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself.
The old crystalhd driver fails to compile for 12.2. kernel 3.4 doesn't have anymore <asm/system.h> In order to make the driver compile you have to remove the line: #include <asm/system.h>
from crystalhd_lnx.h and crystalhd_misc.h
I have rebuild the driver myself and installed. Now mplayer works again in 12.2
Good, could you submit a fix?
Include the attached patch in crystalhd.spec and make it rebuild. Giacomo

At Thu, 13 Sep 2012 11:20:31 -0400, Giacomo Comes wrote:
[1 <text/plain; us-ascii (7bit)>] On Thu, Sep 13, 2012 at 05:05:36PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 11:04:11 -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2.
Can anyone add the target openSUSE 12.2 to OBS hardware project?
Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself.
The old crystalhd driver fails to compile for 12.2. kernel 3.4 doesn't have anymore <asm/system.h> In order to make the driver compile you have to remove the line: #include <asm/system.h>
from crystalhd_lnx.h and crystalhd_misc.h
I have rebuild the driver myself and installed. Now mplayer works again in 12.2
Good, could you submit a fix?
Include the attached patch in crystalhd.spec and make it rebuild.
Well I expected an osc submitreq :) Didn't you build a driver as a package, or only built locally on your machine? thanks, Takashi
Giacomo [2 crystalhd-fix-includes-kernel-3.4.diff <text/plain; us-ascii (7bit)>] diff -Nraub a/crystalhd_lnx.h b/crystalhd_lnx.h --- a/crystalhd_lnx.h 2010-12-07 13:18:41.000000000 -0400 +++ b/crystalhd_lnx.h 2012-09-13 07:11:19.487999441 -0400 @@ -45,7 +45,6 @@ #include <linux/io.h> #include <asm/irq.h> #include <asm/pgtable.h> -#include <asm/system.h> #include <linux/uaccess.h>
#include "crystalhd_cmds.h" diff -Nraub a/crystalhd_misc.h b/crystalhd_misc.h --- a/crystalhd_misc.h 2010-12-07 13:18:41.000000000 -0400 +++ b/crystalhd_misc.h 2012-09-13 07:11:30.471999400 -0400 @@ -35,7 +35,6 @@ #include <linux/ioctl.h> #include <linux/dma-mapping.h> #include <linux/sched.h> -#include <asm/system.h> #include "bc_dts_glob_lnx.h" #include "crystalhd_hw.h"
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Thu, Sep 13, 2012 at 05:28:33PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 11:20:31 -0400, Giacomo Comes wrote:
[1 <text/plain; us-ascii (7bit)>] On Thu, Sep 13, 2012 at 05:05:36PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 11:04:11 -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote: > Hi, > I have a laptop with a braodcom crystalhd accelerator board. > On such laptop with openSUSE 12.1 I was able to use mplayer to play video > using such accelerator board. > With openSUSE 12.2 it is not possible anymore. The reason mplayer fails > is that the device file /dev/crystalhd is missing. In 12.1 it was created > when the module crystalhd was loaded, in 12.2 it is not. > > Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2.
Can anyone add the target openSUSE 12.2 to OBS hardware project?
Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself.
The old crystalhd driver fails to compile for 12.2. kernel 3.4 doesn't have anymore <asm/system.h> In order to make the driver compile you have to remove the line: #include <asm/system.h>
from crystalhd_lnx.h and crystalhd_misc.h
I have rebuild the driver myself and installed. Now mplayer works again in 12.2
Good, could you submit a fix?
Include the attached patch in crystalhd.spec and make it rebuild.
Well I expected an osc submitreq :) Didn't you build a driver as a package, or only built locally on your machine?
I build it on my machine. I never used osc. Giacomo -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Thu, Sep 13, 2012 at 11:04:11AM -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2.
Can anyone add the target openSUSE 12.2 to OBS hardware project?
Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself.
The old crystalhd driver fails to compile for 12.2. kernel 3.4 doesn't have anymore <asm/system.h> In order to make the driver compile you have to remove the line: #include <asm/system.h>
from crystalhd_lnx.h and crystalhd_misc.h
I have rebuild the driver myself and installed. Now mplayer works again in 12.2
It would be good to add in the crystalhd-3.10.0 rpm the attached script that should go in /etc/pm/sleep.d After a hibernate the crystalhd board does not work until the crystalhd kernel module is restarted. I didn't invent the script, just google and you will find many examples of it. Giacomo

At Fri, 14 Sep 2012 16:11:50 -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 11:04:11AM -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2.
Can anyone add the target openSUSE 12.2 to OBS hardware project?
Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself.
The old crystalhd driver fails to compile for 12.2. kernel 3.4 doesn't have anymore <asm/system.h> In order to make the driver compile you have to remove the line: #include <asm/system.h>
from crystalhd_lnx.h and crystalhd_misc.h
I have rebuild the driver myself and installed. Now mplayer works again in 12.2
It would be good to add in the crystalhd-3.10.0 rpm the attached script that should go in /etc/pm/sleep.d
After a hibernate the crystalhd board does not work until the crystalhd kernel module is restarted.
Doesn't it work as is? I thought Broadcom fixed the S3/S4 issues in the kernel driver and user-space stuff. Takashi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Tue, Sep 18, 2012 at 10:23:47AM +0200, Takashi Iwai wrote:
At Fri, 14 Sep 2012 16:11:50 -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 11:04:11AM -0400, Giacomo Comes wrote:
On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
I fixed the wrong link in OBS hardware/crystalhd repo, but current hardware project doesn't built against openSUSE 12.2.
Can anyone add the target openSUSE 12.2 to OBS hardware project?
Meanwhile you can just link the package to your own home project and let it build with openSUSE 12.2 by yourself.
The old crystalhd driver fails to compile for 12.2. kernel 3.4 doesn't have anymore <asm/system.h> In order to make the driver compile you have to remove the line: #include <asm/system.h>
from crystalhd_lnx.h and crystalhd_misc.h
I have rebuild the driver myself and installed. Now mplayer works again in 12.2
It would be good to add in the crystalhd-3.10.0 rpm the attached script that should go in /etc/pm/sleep.d
After a hibernate the crystalhd board does not work until the crystalhd kernel module is restarted.
Doesn't it work as is? I thought Broadcom fixed the S3/S4 issues in the kernel driver and user-space stuff.
It doesn't work in 12.2. I didn't check this issue in 12.1, but I could reinstall 12.1 on my laptop and see what happens if you are intrested. Giacomo -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
Yes, please, it would be great if someone could send me a patch that updates the upstream kernel driver version to the latest, having it go out of sync is not good. greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

At Thu, 13 Sep 2012 08:12:31 -0700, Greg KH wrote:
On Thu, Sep 13, 2012 at 02:39:51PM +0200, Takashi Iwai wrote:
At Thu, 13 Sep 2012 08:30:29 -0400, Giacomo Comes wrote:
On Wed, Sep 12, 2012 at 11:59:36PM -0400, Giacomo Comes wrote:
Hi, I have a laptop with a braodcom crystalhd accelerator board. On such laptop with openSUSE 12.1 I was able to use mplayer to play video using such accelerator board. With openSUSE 12.2 it is not possible anymore. The reason mplayer fails is that the device file /dev/crystalhd is missing. In 12.1 it was created when the module crystalhd was loaded, in 12.2 it is not.
Does anybody know how to fix this?
I have found where the problem is. The staging kernel module in 12.2 only support the 70012 model and I have the 70015 one. The kernel module in 12.1 is based on a more recent version of the broadcom driver that supports both devices.
Right, broadcom-crystalhd-kmp was dropped from 12.2 as we thought that the staging driver in the kernel is updated enough, but obviously a wrong assumption. The upstream staging tree should be updated, too.
Yes, please, it would be great if someone could send me a patch that updates the upstream kernel driver version to the latest, having it go out of sync is not good.
The problem is that a diff is quite large, and the broadcom code doesn't contain the fixes and cleanups in the staging tree. More badly, the development git tree of crystalhd seems gone from the net (although the commits there weren't in the quality as standard kernel patches). In short, it's not so trivial to take it in as of now... Takashi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (3)
-
Giacomo Comes
-
Greg KH
-
Takashi Iwai