Bug#348221: udev: create /dev/em8300* nodes

2006-01-17 Thread Marco d'Itri
Please report the output of udevmonitor --env while you are loading the
module.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#348221: udev: create /dev/em8300* nodes

2006-01-17 Thread Adam

On 2006-01-17 09:57, Marco d'Itri wrote:


Please report the output of udevmonitor --env while you are loading the
module.

 



UEVENT[1137527034.132621] add@/module/firmware_class
ACTION=add
DEVPATH=/module/firmware_class
SUBSYSTEM=module
SEQNUM=638

UDEV  [1137527034.135837] add@/module/firmware_class
UDEV_LOG=3
ACTION=add
DEVPATH=/module/firmware_class
SUBSYSTEM=module
SEQNUM=638
UDEVD_EVENT=1

UEVENT[1137527034.145771] add@/module/i2c_algo_bit
ACTION=add
DEVPATH=/module/i2c_algo_bit
SUBSYSTEM=module
SEQNUM=639

UDEV  [1137527034.153925] add@/module/i2c_algo_bit
UDEV_LOG=3
ACTION=add
DEVPATH=/module/i2c_algo_bit
SUBSYSTEM=module
SEQNUM=639
UDEVD_EVENT=1

UEVENT[1137527034.181953] add@/module/bt865
ACTION=add
DEVPATH=/module/bt865
SUBSYSTEM=module
SEQNUM=640

UDEV  [1137527034.184254] add@/module/bt865
UDEV_LOG=3
ACTION=add
DEVPATH=/module/bt865
SUBSYSTEM=module
SEQNUM=640
UDEVD_EVENT=1

UEVENT[1137527034.201177] add@/bus/i2c/drivers/BT865 video encoder driver
ACTION=add
DEVPATH=/bus/i2c/drivers/BT865 video encoder driver
SUBSYSTEM=drivers
SEQNUM=641

UDEV  [1137527034.203671] add@/bus/i2c/drivers/BT865 video encoder driver
UDEV_LOG=3
ACTION=add
DEVPATH=/bus/i2c/drivers/BT865 video encoder driver
SUBSYSTEM=drivers
SEQNUM=641
UDEVD_EVENT=1

UEVENT[1137527034.257302] add@/module/em8300
ACTION=add
DEVPATH=/module/em8300
SUBSYSTEM=module
SEQNUM=642

UEVENT[1137527034.259537] add@/bus/pci/drivers/Sigma Designs EM8300
ACTION=add
DEVPATH=/bus/pci/drivers/Sigma Designs EM8300
SUBSYSTEM=drivers
SEQNUM=643

UEVENT[1137527034.261478] add@/class/i2c-adapter/i2c-0
ACTION=add
DEVPATH=/class/i2c-adapter/i2c-0
SUBSYSTEM=i2c-adapter
SEQNUM=644
PHYSDEVPATH=/devices/platform/i2c-0
PHYSDEVDRIVER=i2c_adapter

UEVENT[1137527034.263902] add@/devices/platform/i2c-0/0-0045
ACTION=add
DEVPATH=/devices/platform/i2c-0/0-0045
SUBSYSTEM=i2c
SEQNUM=645
PHYSDEVBUS=i2c
PHYSDEVDRIVER=BT865 video encoder driver

UDEV  [1137527034.312680] add@/module/em8300
UDEV_LOG=3
ACTION=add
DEVPATH=/module/em8300
SUBSYSTEM=module
SEQNUM=642
UDEVD_EVENT=1

UDEV  [1137527034.328962] add@/bus/pci/drivers/Sigma Designs EM8300
UDEV_LOG=3
ACTION=add
DEVPATH=/bus/pci/drivers/Sigma Designs EM8300
SUBSYSTEM=drivers
SEQNUM=643
UDEVD_EVENT=1

UDEV  [1137527034.345371] add@/class/i2c-adapter/i2c-0
UDEV_LOG=3
ACTION=add
DEVPATH=/class/i2c-adapter/i2c-0
SUBSYSTEM=i2c-adapter
SEQNUM=644
PHYSDEVPATH=/devices/platform/i2c-0
PHYSDEVDRIVER=i2c_adapter
UDEVD_EVENT=1

UDEV  [1137527034.362267] add@/devices/platform/i2c-0/0-0045
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/platform/i2c-0/0-0045
SUBSYSTEM=i2c
SEQNUM=645
PHYSDEVBUS=i2c
PHYSDEVDRIVER=BT865 video encoder driver
UDEVD_EVENT=1

UEVENT[1137527034.370659] add@/class/i2c-adapter/i2c-1
ACTION=add
DEVPATH=/class/i2c-adapter/i2c-1
SUBSYSTEM=i2c-adapter
SEQNUM=646
PHYSDEVPATH=/devices/platform/i2c-1
PHYSDEVDRIVER=i2c_adapter

UEVENT[1137527034.373052] add@/class/em8300/em8300-0
ACTION=add
DEVPATH=/class/em8300/em8300-0
SUBSYSTEM=em8300
SEQNUM=647
PHYSDEVPATH=/devices/pci:00/:00:08.0/:01:08.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=Sigma Designs EM8300

UEVENT[1137527034.373773] add@/class/sound/dsp
ACTION=add
DEVPATH=/class/sound/dsp
SUBSYSTEM=sound
SEQNUM=648
MAJOR=14
MINOR=3

UEVENT[1137527034.374234] add@/class/em8300/em8300_mv-0
ACTION=add
DEVPATH=/class/em8300/em8300_mv-0
SUBSYSTEM=em8300
SEQNUM=649
PHYSDEVPATH=/devices/pci:00/:00:08.0/:01:08.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=Sigma Designs EM8300

UEVENT[1137527034.374818] add@/class/em8300/em8300_ma-0
ACTION=add
DEVPATH=/class/em8300/em8300_ma-0
SUBSYSTEM=em8300
SEQNUM=650
PHYSDEVPATH=/devices/pci:00/:00:08.0/:01:08.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=Sigma Designs EM8300

UEVENT[1137527034.375472] add@/class/em8300/em8300_sp-0
ACTION=add
DEVPATH=/class/em8300/em8300_sp-0
SUBSYSTEM=em8300
SEQNUM=651
PHYSDEVPATH=/devices/pci:00/:00:08.0/:01:08.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=Sigma Designs EM8300

UDEV  [1137527034.495457] add@/class/i2c-adapter/i2c-1
UDEV_LOG=3
ACTION=add
DEVPATH=/class/i2c-adapter/i2c-1
SUBSYSTEM=i2c-adapter
SEQNUM=646
PHYSDEVPATH=/devices/platform/i2c-1
PHYSDEVDRIVER=i2c_adapter
UDEVD_EVENT=1

UDEV  [1137527034.515444] add@/class/em8300/em8300-0
UDEV_LOG=3
ACTION=add
DEVPATH=/class/em8300/em8300-0
SUBSYSTEM=em8300
SEQNUM=647
PHYSDEVPATH=/devices/pci:00/:00:08.0/:01:08.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=Sigma Designs EM8300
UDEVD_EVENT=1

UDEV  [1137527034.534691] add@/class/sound/dsp
UDEV_LOG=3
ACTION=add
DEVPATH=/class/sound/dsp
SUBSYSTEM=sound
SEQNUM=648
MAJOR=14
MINOR=3
UDEVD_EVENT=1
DEVNAME=/dev/dsp

UDEV  [1137527034.549902] add@/class/em8300/em8300_mv-0
UDEV_LOG=3
ACTION=add
DEVPATH=/class/em8300/em8300_mv-0
SUBSYSTEM=em8300
SEQNUM=649
PHYSDEVPATH=/devices/pci:00/:00:08.0/:01:08.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=Sigma Designs EM8300
UDEVD_EVENT=1

UDEV  [1137527034.563940] add@/class/em8300/em8300_ma-0
UDEV_LOG=3
ACTION=add
DEVPATH=/class/em8300/em8300_ma-0
SUBSYSTEM=em8300
SEQNUM=650

Bug#348221: udev: create /dev/em8300* nodes

2006-01-17 Thread Kay Sievers
On Tue, Jan 17, 2006 at 09:42:57PM +0100, Marco d'Itri wrote:
 On Jan 17, Kay Sievers [EMAIL PROTECTED] wrote:
 
  That driver seem to bypass the kernel driver core. If that's  the case
  the driver needs to be fixed as udevd depends on proper MAJOR/MINOR export
  in the environment now, which happens automatically if the class
  interface is used correctly.

 Even if it worked with 079?

Yes, udev 080 depends on proper driver core integration. With the
removal of libsysfs, we have been able to optimize udev's operation
not to need to open any sysfs file for a simple event, which is
much more efficient.

Thanks,
Kay


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#348221: udev: create /dev/em8300* nodes

2006-01-17 Thread Kay Sievers
On Tue, Jan 17, 2006 at 09:50:21PM +0100, Kay Sievers wrote:
 On Tue, Jan 17, 2006 at 09:42:57PM +0100, Marco d'Itri wrote:
  On Jan 17, Kay Sievers [EMAIL PROTECTED] wrote:
  
   That driver seem to bypass the kernel driver core. If that's  the case
   the driver needs to be fixed as udevd depends on proper MAJOR/MINOR export
   in the environment now, which happens automatically if the class
   interface is used correctly.
 
  Even if it worked with 079?
 
 Yes, udev 080 depends on proper driver core integration. With the
 removal of libsysfs, we have been able to optimize udev's operation
 not to need to open any sysfs file for a simple event, which is
 much more efficient.

I see this in the driver in file em8300_sysfs.c:

  static CLASS_DEVICE_ATTR(dev, S_IRUGO, show_devnum, NULL);

  static struct class_device_attribute *em8300_attrs[] = {
class_device_attr_version,
class_device_attr_dev,
NULL
  };

This needs to be fixed to use the:
  dev_t devt; /* dev_t, creates the sysfs dev */

in the struct class_device instead. Then udev will create the node
again.

Kay


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#348221: udev: create /dev/em8300* nodes

2006-01-17 Thread Greg KH
On Tue, Jan 17, 2006 at 09:59:17PM +0100, Kay Sievers wrote:
 On Tue, Jan 17, 2006 at 09:50:21PM +0100, Kay Sievers wrote:
  On Tue, Jan 17, 2006 at 09:42:57PM +0100, Marco d'Itri wrote:
   On Jan 17, Kay Sievers [EMAIL PROTECTED] wrote:
   
That driver seem to bypass the kernel driver core. If that's  the case
the driver needs to be fixed as udevd depends on proper MAJOR/MINOR 
export
in the environment now, which happens automatically if the class
interface is used correctly.
  
   Even if it worked with 079?
  
  Yes, udev 080 depends on proper driver core integration. With the
  removal of libsysfs, we have been able to optimize udev's operation
  not to need to open any sysfs file for a simple event, which is
  much more efficient.
 
 I see this in the driver in file em8300_sysfs.c:
 
   static CLASS_DEVICE_ATTR(dev, S_IRUGO, show_devnum, NULL);
 
   static struct class_device_attribute *em8300_attrs[] = {
 class_device_attr_version,
 class_device_attr_dev,
 NULL
   };
 
 This needs to be fixed to use the:
   dev_t devt; /* dev_t, creates the sysfs dev */
 
 in the struct class_device instead. Then udev will create the node
 again.

No, it needs to be converted to use the proper class_device core kernel
code, which will handle all of this automatically for them.

thanks,

greg k-h


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#348221: udev: create /dev/em8300* nodes

2006-01-16 Thread Marco d'Itri
On Jan 16, Adam [EMAIL PROTECTED] wrote:

 with udev 0.080-2:
 udevtest /class/em8300/em8300-0/
 main: looking at device '/class/em8300/em8300-0' from subsystem 'em8300'
 udev_rules_get_name: no node name set, will use kernel name 'em8300-0'
 create_node: creating device node '/dev/em8300-0', major = '121', minor 
 = '0', mode = '0660', uid = '0', gid = '44'

What's wrong then?

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#348221: udev: create /dev/em8300* nodes

2006-01-16 Thread Marco d'Itri
On Jan 16, Adam [EMAIL PROTECTED] wrote:

 udevtest shows that udev will create proper nodes, but in practice udev 
 creates them in /dev/.static/dev/
No, it does not. /dev/.static/dev/ is your underlying /dev directory.
I find hard to believe that udevtest says that nodes will be created but
udevd then does not.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#348221: udev: create /dev/em8300* nodes

2006-01-16 Thread Adam

On 2006-01-16 18:49,  Marco d'Itri wrote:


On Jan 16, Adam [EMAIL PROTECTED] wrote:

 


with udev 0.080-2:
udevtest /class/em8300/em8300-0/
main: looking at device '/class/em8300/em8300-0' from subsystem 'em8300'
udev_rules_get_name: no node name set, will use kernel name 'em8300-0'
create_node: creating device node '/dev/em8300-0', major = '121', minor 
= '0', mode = '0660', uid = '0', gid = '44'
   



What's wrong then?

 

udevtest shows that udev will create proper nodes, but in practice udev 
creates them in /dev/.static/dev/
I know that it's little strange, but with udev 0.079-1 all nodes are 
created in /dev/


--
Regards
Adam



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#348221: udev: create /dev/em8300* nodes

2006-01-16 Thread Adam

On 2006-01-16 20:19, Marco d'Itri wrote:


On Jan 16, Adam [EMAIL PROTECTED] wrote:

 

udevtest shows that udev will create proper nodes, but in practice udev 
creates them in /dev/.static/dev/
   


No, it does not. /dev/.static/dev/ is your underlying /dev directory.
I find hard to believe that udevtest says that nodes will be created but
udevd then does not.

 

I understand, but You have to belive that udev doesn't create that nodes 
in /dev/ :) I have to copy them manually to make the card work


Maybe the fact that there is no DEVNAME entry for em8300-0 in 
/dev/hotplug.log will be of some use.


PHYSDEVPATH=/devices/pci:00/:00:08.0/:01:08.0
SUBSYSTEM=em8300
OLDPWD=/
DEVPATH=/class/em8300/em8300-0
ACTION=add
UDEV_LOG=7
UDEVD_EVENT=1
PHYSDEVDRIVER=Sigma Designs EM8300
PHYSDEVBUS=pci
SEQNUM=478

--
Regards
Adam



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#348221: udev: create /dev/em8300* nodes

2006-01-15 Thread AdamW
Package: udev
Version: 0.080-1
Severity: wishlist

Hello,

Udev doesn't create device nodes for dxr3 card in /dev, I have to copy them 
from /dev/.static/dev/ to make card work.
I was trying to write a proper rule which could fix it, but I can't.
There was no problem with udev 0.079-1


-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
razem 0
lrwxrwxrwx 1 root root 20 2006-01-14 18:55 020_permissions.rules - 
../permissions.rules
lrwxrwxrwx 1 root root 12 2006-01-15 14:08 050_hal-plugdev.rules - ../hal.rules
lrwxrwxrwx 1 root root 19 2006-01-14 18:55 cd-aliases.rules - 
../cd-aliases.rules
lrwxrwxrwx 1 root root 13 2006-01-14 18:55 udev.rules - ../udev.rules
lrwxrwxrwx 1 root root 19 2006-01-14 18:55 z20_persistent.rules - 
../persistent.rules
lrwxrwxrwx 1 root root 12 2006-01-14 18:55 z50_run.rules - ../run.rules
lrwxrwxrwx 1 root root 16 2006-01-14 18:55 z55_hotplug.rules - ../hotplug.rules
lrwxrwxrwx 1 root root 19 2006-01-14 21:48 z60_alsa-utils.rules - 
../alsa-utils.rules
lrwxrwxrwx 1 root root 17 2006-01-14 18:55 z70_hotplugd.rules - 
../hotplugd.rules

-- /sys/:
/sys/block/hda/dev
/sys/block/hda/hda1/dev
/sys/block/hda/hda2/dev
/sys/block/hda/hda3/dev
/sys/block/hda/hda4/dev
/sys/block/hda/hda5/dev
/sys/block/hda/hda6/dev
/sys/block/hdb/dev
/sys/block/hdb/hdb1/dev
/sys/block/hdb/hdb2/dev
/sys/block/hdb/hdb3/dev
/sys/block/hdc/dev
/sys/block/hdd/dev
/sys/block/hdd/hdd1/dev
/sys/block/hdd/hdd2/dev
/sys/block/ram0/dev
/sys/class/em8300/em8300-0/dev
/sys/class/em8300/em8300_ma-0/dev
/sys/class/em8300/em8300_mv-0/dev
/sys/class/em8300/em8300_sp-0/dev
/sys/class/graphics/fb0/dev
/sys/class/input/input1/mouse0/dev
/sys/class/input/mice/dev
/sys/class/misc/agpgart/dev
/sys/class/misc/psaux/dev
/sys/class/misc/rtc/dev
/sys/class/printer/lp0/dev
/sys/class/sound/adsp/dev
/sys/class/sound/audio/dev
/sys/class/sound/controlC0/dev
/sys/class/sound/controlC0/pcmC0D0c/dev
/sys/class/sound/controlC0/pcmC0D0p/dev
/sys/class/sound/controlC0/pcmC0D1c/dev
/sys/class/sound/controlC0/pcmC0D2p/dev
/sys/class/sound/dsp1/dev
/sys/class/sound/dsp/dev
/sys/class/sound/mixer/dev
/sys/class/sound/timer/dev
/sys/class/usb_device/usbdev1.1/dev
/sys/class/usb_device/usbdev2.1/dev
/sys/class/usb_device/usbdev3.1/dev

-- Kernel configuration:
 init_tmpfs not present.
 isapnp_init not present.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.1
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages udev depends on:
ii  initscripts   2.86.ds1-6 Standard scripts needed for bootin
ii  libc6 2.3.5-11   GNU C Library: Shared libraries an
ii  libselinux1   1.28-2 SELinux shared libraries
ii  lsb-base  3.0-14 Linux Standard Base 3.0 init scrip
ii  makedev   2.3.1-79   creates device files in /dev
ii  sed   4.1.4-5The GNU sed stream editor

udev recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#348221: udev: create /dev/em8300* nodes

2006-01-15 Thread Marco d'Itri
On Jan 15, AdamW [EMAIL PROTECTED] wrote:

 Udev doesn't create device nodes for dxr3 card in /dev, I have to copy them 
 from /dev/.static/dev/ to make card work.
 I was trying to write a proper rule which could fix it, but I can't.
 There was no problem with udev 0.079-1

Please check if the package at http://www.bofh.it/~md/debian/ fixes your
problem.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#348221: udev: create /dev/em8300* nodes

2006-01-15 Thread Adam

Thanks for reply

I've installed this package but it didn't fix the problem.

Regards
Adam


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#348221: udev: create /dev/em8300* nodes

2006-01-15 Thread Marco d'Itri
On Jan 15, AdamW [EMAIL PROTECTED] wrote:

 Udev doesn't create device nodes for dxr3 card in /dev, I have to copy them 
 from /dev/.static/dev/ to make card work.
 I was trying to write a proper rule which could fix it, but I can't.
Which rules are you using to create these devices?
Also, please report the output of udevtest on the relevante $DEVPATHs.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#348221: udev: create /dev/em8300* nodes

2006-01-15 Thread Adam
On 2006-01-15 22:22, Użytkownik Marco d'Itri napisał:

On Jan 15, AdamW [EMAIL PROTECTED] wrote:

  

Udev doesn't create device nodes for dxr3 card in /dev, I have to copy them 
from /dev/.static/dev/ to make card work.
I was trying to write a proper rule which could fix it, but I can't.


Which rules are you using to create these devices?
Also, please report the output of udevtest on the relevante $DEVPATHs.

  

with udev 0.080-2:
udevtest /class/em8300/em8300-0/
main: looking at device '/class/em8300/em8300-0' from subsystem 'em8300'
udev_rules_get_name: no node name set, will use kernel name 'em8300-0'
create_node: creating device node '/dev/em8300-0', major = '121', minor 
= '0', mode = '0660', uid = '0', gid = '44'
main: run: 'socket:/org/kernel/udev/monitor'
main: run: 'udev_run_hotplugd'
main: run: 'udev_run_devd'

with udev 0.079-1:
udevtest /class/em8300/em8300-0/ em8300
main: looking at device '/class/em8300/em8300-0/' from subsystem 'em8300'
main: opened class_dev-name='em8300-0'
udev_rules_get_name: no node name set, will use kernel name 'em8300-0'
create_node: creating device node '/dev/em8300-0', major = '121', minor 
= '0', mode = '0660', uid = '0', gid = '44'

grep em8300 /etc/udev/*
/etc/udev/permissions.rules:SUBSYSTEM==em8300,GROUP=video


Regards
Adam