Skip to contentSkip to conversation

v4.15: camera problems on n900

DISCUSSION Pavel Machek 3 participants 8 messages Dec 27, 2017 – Feb 19, 2018 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi!

In v4.14, back camera on N900 works. On v4.15-rc1.. it works for few seconds, but then I get repeated oopses.

On v4.15-rc0.5 (commit ed30b147e1f6e396e70a52dbb6c7d66befedd786), camera does not start.

Any ideas what might be wrong there?
Pavel

Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171227/4a951706/attachment.sig>
#1 lore raw
Quoted 9 lines · Pavel Machek

Hi!

In v4.14, back camera on N900 works. On v4.15-rc1.. it works for few seconds, but then I get repeated oopses.

On v4.15-rc0.5 (commit ed30b147e1f6e396e70a52dbb6c7d66befedd786), camera does not start.

Any ideas what might be wrong there?

What kind of oopses do you get?

Signature · 2 lines
Sakari Ailus
sakari.ailus at linux.intel.com
#2 lore raw
Quoted 6 lines · Sakari Ailus
Quoted 5 lines · Pavel Machek

Hi!

In v4.14, back camera on N900 works. On v4.15-rc1.. it works for few seconds, but then I get repeated oopses.

Quoted 6 lines
Quoted 4 lines

On v4.15-rc0.5 (commit ed30b147e1f6e396e70a52dbb6c7d66befedd786), camera does not start.

Any ideas what might be wrong there?

What kind of oopses do you get?

They seemed to be in unrelated processes -> not useful for debugging. I tried again, but this time it hangs, similar way to -rc0.5. (That might be good news).

Does it work for you on N9?

Thanks,
Pavel

Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171227/e7892f96/attachment.sig>
#3 lore raw
In reply to Sakari Ailus
Quoted 6 lines · Sakari Ailus
Quoted 5 lines · Pavel Machek

Hi!

In v4.14, back camera on N900 works. On v4.15-rc1.. it works for few seconds, but then I get repeated oopses.

Quoted 6 lines
Quoted 4 lines

On v4.15-rc0.5 (commit ed30b147e1f6e396e70a52dbb6c7d66befedd786), camera does not start.

Any ideas what might be wrong there?

What kind of oopses do you get?

Haven't seen the oopses yet; maybe they are only on linux-next? Anyway, bisect so far:

# bad: [fb3f95c11904adf26c2bd86fe1b1613c921710b5] Config for v4.15-rc0.5
# good: [c213cf57c2f15ee226c14dd7157caa334c3ef7c8] Make config similar to n950 case. Still works on n900.
git bisect start 'mini-v4.15' 'mini-v4.14'
# good: [06410bdec961a55e78e01d4fda199f709a84e17f] Merge /data/l/clean-cg into mini-v4.14
git bisect good 06410bdec961a55e78e01d4fda199f709a84e17f
# bad: [fc35c1966e1372a21a88f6655279361e2f92713f] Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
git bisect bad fc35c1966e1372a21a88f6655279361e2f92713f
# good: [bebc6082da0a9f5d47a1ea2edc099bf671058bd4] Linux 4.14
git bisect good bebc6082da0a9f5d47a1ea2edc099bf671058bd4
# good: [5bbcc0f595fadb4cac0eddc4401035ec0bd95b09] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
git bisect good 5bbcc0f595fadb4cac0eddc4401035ec0bd95b09
# bad: [5b0e2cb020085efe202123162502e0b551e49a0e] Merge tag 'powerpc-4.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
git bisect bad 5b0e2cb020085efe202123162502e0b551e49a0e
# good: [f150891fd9878ef0d9197c4e8451ce67c3bdd014] Merge tag 'exynos-drm-next-for-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next git bisect good f150891fd9878ef0d9197c4e8451ce67c3bdd014
# good: [93ea0eb7d77afab34657715630d692a78b8cea6a] Merge tag 'leaks-4.15-rc1' of git://github.com/tcharding/linux
git bisect good 93ea0eb7d77afab34657715630d692a78b8cea6a
# bad: [2bf16b7a73caf3435f782e4170cfe563675e10f9] Merge tag 'char-misc-4.15-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc git bisect bad 2bf16b7a73caf3435f782e4170cfe563675e10f9
# good: [ef674997e49760137ca9a90aac41a9922ac399b2] media: staging: atomisp: Convert timers to use timer_setup()
git bisect good ef674997e49760137ca9a90aac41a9922ac399b2
# good: [b1cb7372fa822af6c06c8045963571d13ad6348b] dvb_frontend: don't use-after-free the frontend struct
git bisect good b1cb7372fa822af6c06c8045963571d13ad6348b

Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171228/413292c1/attachment.sig>
#4 lore raw
In reply to Sakari Ailus
Quoted 6 lines · Sakari Ailus
Quoted 5 lines · Pavel Machek

Hi!

In v4.14, back camera on N900 works. On v4.15-rc1.. it works for few seconds, but then I get repeated oopses.

Quoted 6 lines
Quoted 4 lines

On v4.15-rc0.5 (commit ed30b147e1f6e396e70a52dbb6c7d66befedd786), camera does not start.

Any ideas what might be wrong there?

What kind of oopses do you get?

Hmm. bisect pointed to commit that can't be responsible.... Ideas welcome.

Pavel

# bad: [fb3f95c11904adf26c2bd86fe1b1613c921710b5] Config for v4.15-rc0.5
# good: [c213cf57c2f15ee226c14dd7157caa334c3ef7c8] Make config similar to n950 case. Still works on n900.
git bisect start 'mini-v4.15' 'mini-v4.14'
# good: [06410bdec961a55e78e01d4fda199f709a84e17f] Merge /data/l/clean-cg into mini-v4.14
git bisect good 06410bdec961a55e78e01d4fda199f709a84e17f
# bad: [fc35c1966e1372a21a88f6655279361e2f92713f] Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
git bisect bad fc35c1966e1372a21a88f6655279361e2f92713f
# good: [bebc6082da0a9f5d47a1ea2edc099bf671058bd4] Linux 4.14
git bisect good bebc6082da0a9f5d47a1ea2edc099bf671058bd4
# good: [5bbcc0f595fadb4cac0eddc4401035ec0bd95b09] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
git bisect good 5bbcc0f595fadb4cac0eddc4401035ec0bd95b09
# bad: [5b0e2cb020085efe202123162502e0b551e49a0e] Merge tag 'powerpc-4.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
git bisect bad 5b0e2cb020085efe202123162502e0b551e49a0e
# good: [f150891fd9878ef0d9197c4e8451ce67c3bdd014] Merge tag 'exynos-drm-next-for-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next git bisect good f150891fd9878ef0d9197c4e8451ce67c3bdd014
# good: [93ea0eb7d77afab34657715630d692a78b8cea6a] Merge tag 'leaks-4.15-rc1' of git://github.com/tcharding/linux
git bisect good 93ea0eb7d77afab34657715630d692a78b8cea6a
# bad: [2bf16b7a73caf3435f782e4170cfe563675e10f9] Merge tag 'char-misc-4.15-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc git bisect bad 2bf16b7a73caf3435f782e4170cfe563675e10f9
# good: [ef674997e49760137ca9a90aac41a9922ac399b2] media: staging: atomisp: Convert timers to use timer_setup()
git bisect good ef674997e49760137ca9a90aac41a9922ac399b2
# good: [b1cb7372fa822af6c06c8045963571d13ad6348b] dvb_frontend: don't use-after-free the frontend struct
git bisect good b1cb7372fa822af6c06c8045963571d13ad6348b
# good: [c9fe0f8fa4136c2451dcc012e48fbf4470d6b592] hyper-v: trace vmbus_on_msg_dpc()
git bisect good c9fe0f8fa4136c2451dcc012e48fbf4470d6b592
# good: [e20d2b291ba2f5441fd4aacd746c21e60d48b559] nvmem: imx-ocotp: Pass parameters via a struct
git bisect good e20d2b291ba2f5441fd4aacd746c21e60d48b559
# good: [0ff26c662d5f3b26674d5205c8899d901f766acb] driver core: Fix device link deferred probe
git bisect good 0ff26c662d5f3b26674d5205c8899d901f766acb
# good: [d4035a8c1ff7288af9e47d6d05384f14c9308ea1] MAINTAINERS: Update VME subsystem tree.
git bisect good d4035a8c1ff7288af9e47d6d05384f14c9308ea1
# bad: [e60e1ee60630cafef5e430c2ae364877e061d980] Merge tag 'drm-for-v4.15' of git://people.freedesktop.org/~airlied/linux
git bisect bad e60e1ee60630cafef5e430c2ae364877e061d980
# bad: [5d352e69c60e54b5f04d6e337a1d2bf0dbf3d94a] Merge tag 'media/v4.15-1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media git bisect bad 5d352e69c60e54b5f04d6e337a1d2bf0dbf3d94a
# good: [f2ecc3d0787e05d9145722feed01d4a11ab6bec1] Merge tag 'staging-4.15-rc1' into v4l_for_linus
git bisect good f2ecc3d0787e05d9145722feed01d4a11ab6bec1

# first bad commit: [5d352e69c60e54b5f04d6e337a1d2bf0dbf3d94a] Merge tag 'media/v4.15-1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171228/c05ac7f1/attachment.sig>
#5 lore raw
Quoted 10 lines · Pavel Machek
Quoted 9 lines · Sakari Ailus
Quoted 8 lines · Pavel Machek

Hi!

In v4.14, back camera on N900 works. On v4.15-rc1.. it works for few seconds, but then I get repeated oopses.

On v4.15-rc0.5 (commit ed30b147e1f6e396e70a52dbb6c7d66befedd786), camera does not start.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Any ideas what might be wrong there?

What kind of oopses do you get?

Hmm. bisect pointed to commit that can't be responsible.... Ideas welcome.

Hi Pavel,

I tested N9 and capture appears to be working from the CSI-2 receiver (media tree master, i.e. v4.15-rc3 now).

Which pipeline did you use?

Signature · 4 lines
Regards,

Sakari Ailus
e-mail: sakari.ailus at iki.fi
#6 lore raw
Quoted 18 lines · Sakari Ailus
Quoted 10 lines · Pavel Machek
Quoted 9 lines · Sakari Ailus
Quoted 8 lines · Pavel Machek

Hi!

In v4.14, back camera on N900 works. On v4.15-rc1.. it works for few seconds, but then I get repeated oopses.

On v4.15-rc0.5 (commit ed30b147e1f6e396e70a52dbb6c7d66befedd786), camera does not start.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Any ideas what might be wrong there?

What kind of oopses do you get?

Hmm. bisect pointed to commit that can't be responsible.... Ideas welcome.

Quoted 6 lines

Hi Pavel,

I tested N9 and capture appears to be working from the CSI-2 receiver (media tree master, i.e. v4.15-rc3 now).

Which pipeline did you use?

I'm using the "main" sensor (5MPx) and am using capture (not preview) pipeline.

I tested linux-next in the meantime, and that one seems to work. (Which is strange, I believe it oopsed before. Perhaps something random?) With linux-next working, it should not be hardto figure out what is going on.

Thanks,
Pavel

Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171229/8f7efadb/attachment.sig>
#7 lore raw

next-20180219: camera problems on n900

In reply to Sakari Ailus

Hi!

Quoted 13 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

In v4.14, back camera on N900 works. On v4.15-rc1.. it works for few seconds, but then I get repeated oopses.

On v4.15-rc0.5 (commit ed30b147e1f6e396e70a52dbb6c7d66befedd786), camera does not start.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Any ideas what might be wrong there?

What kind of oopses do you get?

Hmm. bisect pointed to commit that can't be responsible.... Ideas welcome.

Quoted 6 lines

Hi Pavel,

I tested N9 and capture appears to be working from the CSI-2 receiver (media tree master, i.e. v4.15-rc3 now).

Which pipeline did you use?

I tested next-20180219 and camera does not work there. It leads to nasty oops. I tried to capture the oops with dmesg > file, and that one oopsed, too. usb networking also has problems... fun.

Camera works ok in V4.16-rc1, but if I use the camera, next shutdown will oops. I'll try to collect more data there, too.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html