[Letux-kernel] accelerometer bridge madness

Andreas Kemnade andreas at kemnade.info
Fri Jul 27 20:01:19 CEST 2018


On Fri, 27 Jul 2018 19:54:39 +0200
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:

[...]
> could you copy the full strace incl. command?
> Then I can try on my device and we can compare.
> 
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="accelerometer-iio-input-bridge"
P: Phys=accel/input0
S: Sysfs=/devices/virtual/input/input6
U: Uniq=
H: Handlers=js0 event5 
B: PROP=0
B: EV=9
B: ABS=7

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="TSC2007 Touchscreen"
P: Phys=1-0048/input0
S: Sysfs=/devices/platform/68000000.ocp/48072000.i2c/i2c-1/1-0048/input/input5
U: Uniq=
H: Handlers=mouse0 event6 
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003

root at gta04:~# xxd /dev/^C
root at gta04:~# strace xxd /dev/input/event5 
execve("/usr/bin/xxd", ["xxd", "/dev/input/event5"], [/* 16 vars */]) = 0
brk(0)                                  = 0x4ed000
uname({sys="Linux", node="gta04", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f41000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=78838, ...}) = 0
mmap2(NULL, 78838, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6f08000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabihf/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0Mw\1\0004\0\0\0"..., 512) = 512
lseek(3, 908188, SEEK_SET)              = 908188
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2880) = 2880
lseek(3, 904740, SEEK_SET)              = 904740
read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 53) = 53
fstat64(3, {st_mode=S_IFREG|0755, st_size=911068, ...}) = 0
mmap2(NULL, 980392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e18000
mprotect(0xb6ef3000, 61440, PROT_NONE)  = 0
mmap2(0xb6f02000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xda000) = 0xb6f02000
mmap2(0xb6f05000, 9640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6f05000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f40000
set_tls(0xb6f40850, 0xb6f44058, 0xb6f40f38, 0xb6f40850, 0xb6f44058) = 0
mprotect(0xb6f02000, 8192, PROT_READ)   = 0
mprotect(0x4ea000, 4096, PROT_READ)     = 0
mprotect(0xb6f43000, 4096, PROT_READ)   = 0
munmap(0xb6f08000, 78838)               = 0
brk(0)                                  = 0x4ed000
brk(0x50e000)                           = 0x50e000
open("/dev/input/event5", O_RDONLY)     = 3
fstat64(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(13, 69), ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0xbea65a7c) = -1 EINVAL (Invalid argument)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f3f000
read(3, 

ctrl+c gives high cpu usage (pasted from top):
 2908 root      20   0       0      0      0 R 89.1  0.0   0:14.29 xxd                                                                                                                                                                       

and the process does not terminate.

Regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180727/c1a024fa/attachment.asc>


More information about the Letux-kernel mailing list