Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH 0/4] media: atomisp: mt9m114: Make it work on Asus T100TA
@ 2024-10-13 15:40 Hans de Goede
  2024-10-13 15:40 ` [PATCH 1/4] media: atomisp: Fix WARN_ON() in vb2_start_streaming() triggering Hans de Goede
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Hans de Goede @ 2024-10-13 15:40 UTC (permalink / raw)
  To: Sakari Ailus, Andy Shevchenko
  Cc: Hans de Goede, Mauro Carvalho Chehab, Kate Hsuan, Robert Mast,
	linux-media, linux-staging

Hi All,

Since there is some interest in getting the mt9m114 camera to work on
the Asus T100TA:

https://github.com/jfwells/linux-asus-t100ta/issues/4
https://lore.kernel.org/platform-driver-x86/e0c8c98f-64ec-4297-bbc8-de489414515c@zonnet.nl/

I have spend some time this weekend poking at this resulting in this
series which makes things work somewhat.

Note that for now this will only work if you modify the BIOS settings
to change the ISP to be listed as a PCI device in lspci:

00:03.0 Multimedia controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Camera ISP (rev 09)

If you do not have this in lspci then things will not work. The BIOS
does not allow changing this setting from its menu, so we need to
use the grub setup_var_3 command form a patched grub.

Note this requires your Asus T100TA to be at the latest v314 BIOS version,
this has not been tested with other versions!

Download grubia32.efi from here:

https://fedorapeople.org/~jwrdegoede/grub-efi-setup_var/grubia32.efi

Boot this once and then run:

setup_var_3 6f

If the ISP is not visible in lspci this should show 01 as value
for the 0x6f offset.

Now change this to 2:

setup_var_3 6f 02

and then reboot. After this the ISP should be visible in lspci.

For more details on how this works see:
https://hansdegoede.dreamwidth.org/25589.html

Note this series is just a quick hack, the proper fix would be to get
the new drivers/media/i2c/mt9m114 standard v4l2 driver to work and
atomisp does support standard v4l2 drivers for a while now.

I plan to take a shot at this as time permits, hopefully sometime
within a month but no promises.

Regards,

Hans


Hans de Goede (4):
  media: atomisp: Fix WARN_ON() in vb2_start_streaming() triggering
  media: atomisp: mt9m114: Disable V4L2_CID_3A_LOCK control
  media: atomisp: mt9m114: Add missing mutex_init() call
  media: atomisp: mt9m114: Fix fmt->code not getting set on try_fmt

 drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c | 13 +++++++++----
 drivers/staging/media/atomisp/pci/atomisp_ioctl.c   |  5 ++++-
 2 files changed, 13 insertions(+), 5 deletions(-)

-- 
2.47.0


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

end of thread, other threads:[~2024-11-04 11:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-13 15:40 [PATCH 0/4] media: atomisp: mt9m114: Make it work on Asus T100TA Hans de Goede
2024-10-13 15:40 ` [PATCH 1/4] media: atomisp: Fix WARN_ON() in vb2_start_streaming() triggering Hans de Goede
2024-10-14 11:28   ` Andy Shevchenko
2024-10-13 15:40 ` [PATCH 2/4] media: atomisp: mt9m114: Disable V4L2_CID_3A_LOCK control Hans de Goede
2024-10-13 15:40 ` [PATCH 3/4] media: atomisp: mt9m114: Add missing mutex_init() call Hans de Goede
2024-10-14 11:31   ` Andy Shevchenko
2024-10-14 12:11     ` Hans de Goede
2024-10-13 15:40 ` [PATCH 4/4] media: atomisp: mt9m114: Fix fmt->code not getting set on try_fmt Hans de Goede
2024-10-14 11:32 ` [PATCH 0/4] media: atomisp: mt9m114: Make it work on Asus T100TA Andy Shevchenko
2024-10-14 12:09   ` Hans de Goede
2024-11-04 11:06 ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox