* [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware @ 2026-10-31 12:18 Ruslan Bay 2026-11-02 20:48 ` Sakari Ailus 2026-11-24 19:52 ` Daniel Tang 0 siblings, 2 replies; 7+ messages in thread From: Ruslan Bay @ 2026-10-31 12:18 UTC (permalink / raw) To: linux-media@vger.kernel.org Cc: Antti Laakso, Sakari Ailus, Ricardo Ribalda, Andreas Helbech Kleist, ilpo.jarvinen@linux.intel.com, tfiga@chromium.org, senozhatsky@chromium.org, claus.stovgaard@gmail.com, andriy.shevchenko@linux.intel.com, tomi.valkeinen@ideasonboard.com, kieran.bingham@ideasonboard.com, Laurent Pinchart, johannes.goede@oss.qualcomm.com This series adds IPU4P support to the upstream IPU6/IPU7 driver. The IPU4 family includes IPU4 (Apollo Lake) and IPU4P (Ice Lake); this series supports IPU4P only. Most of the groundwork was done by Antti Laakso in the IPU7 support series [1]. I added the IPU4P-specific parts, using Intel's downstream driver as a reference [2]. The code mostly generated using AI. Image capture was tested on a Surface Pro 7 (i5-1035G4) with both the front OV5693 and rear OV8865 cameras. Test logs: [3] Thanks to the linux-surface community and the libcamera developers for testing the downstream driver and sharing their findings. Changes since v1: - Addressed review feedback on: - IPU4P buttress handling and register definitions - Firmware ABI declarations and structure layout - ISYS interrupt setup and handling - Simplified the Surface Pro 7 CSI-2 timing workaround. - Refactored the IPU4P implementation to better align with the existing IPU6/7/8 driver codebase. Links: [1] https://lore.kernel.org/all/20260907113004.2489993-1-sakari.ailus@linux.intel.com/ [2] https://github.com/intel/linux-intel-lts/tree/lts-v5.15.195-android_t-251103T063840Z/drivers/media/pci/intel [3] https://github.com/ruslanbay/ipu4-drivers/tree/3c7c0b623f99a90b32c50691195612172be30822/assets Ruslan Bay (12): media: ipu6: Add IPU4P hardware identification media: ipu6: Add IPU4P MMU support media: ipu6: Add IPU4P buttress support media: ipu6: Add IPU4P ISYS firmware ABI definitions media: ipu6: Support DMEM-based SysCom in ipu6-fw-com media: ipu6: Add firmware-specific ISYS response dispatch media: ipu6: Add IPU4P ISYS firmware operations media: ipu6: Add IPU4P CSI-2 register definitions media: ipu6: Add IPU4P ISYS ISR handling media: ipu6: Add IPU4P CSI PHY driver media: ipu6: Fix Surface Pro 7 CSI-2 capture timing media: ipu6: Enable IPU4P PCI device drivers/media/pci/intel/ipu6/Kconfig | 8 +- drivers/media/pci/intel/ipu6/Makefile | 2 + drivers/media/pci/intel/ipu6/ipu4p-fw-isys.c | 996 ++++++++++++++++++ drivers/media/pci/intel/ipu6/ipu4p-fw-isys.h | 406 +++++++ .../media/pci/intel/ipu6/ipu4p-isys-csi-phy.c | 225 ++++ .../pci/intel/ipu6/ipu4p-isys-csi2-regs.h | 72 ++ drivers/media/pci/intel/ipu6/ipu6-bus.h | 1 + drivers/media/pci/intel/ipu6/ipu6-buttress.c | 59 +- drivers/media/pci/intel/ipu6/ipu6-fw-com.c | 48 +- drivers/media/pci/intel/ipu6/ipu6-fw-com.h | 3 + drivers/media/pci/intel/ipu6/ipu6-fw-isys.c | 64 +- drivers/media/pci/intel/ipu6/ipu6-fw-isys.h | 4 +- drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c | 103 +- drivers/media/pci/intel/ipu6/ipu6-isys-csi2.h | 2 + .../media/pci/intel/ipu6/ipu6-isys-queue.c | 36 +- .../media/pci/intel/ipu6/ipu6-isys-video.c | 12 +- drivers/media/pci/intel/ipu6/ipu6-isys.c | 136 ++- drivers/media/pci/intel/ipu6/ipu6-isys.h | 36 + drivers/media/pci/intel/ipu6/ipu6-mmu-hw.c | 114 +- drivers/media/pci/intel/ipu6/ipu6-mmu.c | 7 +- drivers/media/pci/intel/ipu6/ipu6-mmu.h | 1 + .../intel/ipu6/ipu6-platform-buttress-regs.h | 30 + .../media/pci/intel/ipu6/ipu6-platform-regs.h | 14 + drivers/media/pci/intel/ipu6/ipu6.c | 49 + drivers/media/pci/intel/ipu6/ipu6.h | 20 +- include/media/ipu6-pci-table.h | 2 + 26 files changed, 2361 insertions(+), 89 deletions(-) create mode 100644 drivers/media/pci/intel/ipu6/ipu4p-fw-isys.c create mode 100644 drivers/media/pci/intel/ipu6/ipu4p-fw-isys.h create mode 100644 drivers/media/pci/intel/ipu6/ipu4p-isys-csi-phy.c create mode 100644 drivers/media/pci/intel/ipu6/ipu4p-isys-csi2-regs.h base-commit: 27285b099fbc5cb2ae3aef20f3bbd7b3c88b3005 -- 2.56.0 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware 2026-10-31 12:18 [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware Ruslan Bay @ 2026-11-02 20:48 ` Sakari Ailus 2026-11-03 12:36 ` Ruslan Bay 2026-11-24 19:52 ` Daniel Tang 1 sibling, 1 reply; 7+ messages in thread From: Sakari Ailus @ 2026-11-02 20:48 UTC (permalink / raw) To: Ruslan Bay Cc: linux-media@vger.kernel.org, Antti Laakso, Ricardo Ribalda, Andreas Helbech Kleist, ilpo.jarvinen@linux.intel.com, tfiga@chromium.org, senozhatsky@chromium.org, claus.stovgaard@gmail.com, andriy.shevchenko@linux.intel.com, tomi.valkeinen@ideasonboard.com, kieran.bingham@ideasonboard.com, Laurent Pinchart, johannes.goede@oss.qualcomm.com Hi Ruslan, On Sat, Oct 31, 2026 at 12:18:19PM +0000, Ruslan Bay wrote: > This series adds IPU4P support to the upstream IPU6/IPU7 driver. > The IPU4 family includes IPU4 (Apollo Lake) and IPU4P (Ice Lake); > this series supports IPU4P only. > > Most of the groundwork was done by Antti Laakso in the IPU7 support > series [1]. I added the IPU4P-specific parts, using Intel's downstream > driver as a reference [2]. The code mostly generated using AI. > > Image capture was tested on a Surface Pro 7 (i5-1035G4) with > both the front OV5693 and rear OV8865 cameras. Test logs: [3] > > Thanks to the linux-surface community and the libcamera developers for > testing the downstream driver and sharing their findings. Please use git send-email to send further versions of the set if any -- threading is broken in this version. No need to send a new version just for that though. -- Kind regards, Sakari Ailus ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware 2026-11-02 20:48 ` Sakari Ailus @ 2026-11-03 12:36 ` Ruslan Bay 2026-11-03 18:36 ` andriy.shevchenko 0 siblings, 1 reply; 7+ messages in thread From: Ruslan Bay @ 2026-11-03 12:36 UTC (permalink / raw) To: Sakari Ailus Cc: linux-media@vger.kernel.org, Antti Laakso, Ricardo Ribalda, Andreas Helbech Kleist, ilpo.jarvinen@linux.intel.com, tfiga@chromium.org, senozhatsky@chromium.org, claus.stovgaard@gmail.com, andriy.shevchenko@linux.intel.com, tomi.valkeinen@ideasonboard.com, kieran.bingham@ideasonboard.com, Laurent Pinchart, johannes.goede@oss.qualcomm.com Hi Sakari, On Monday, November 2nd, 2026 at 9:48 PM, Sakari Ailus <sakari.ailus@linux.intel.com> wrote: > Hi Ruslan, > > On Sat, Oct 31, 2026 at 12:18:19PM +0000, Ruslan Bay wrote: > > This series adds IPU4P support to the upstream IPU6/IPU7 driver. > > The IPU4 family includes IPU4 (Apollo Lake) and IPU4P (Ice Lake); > > this series supports IPU4P only. > > > > Most of the groundwork was done by Antti Laakso in the IPU7 support > > series [1]. I added the IPU4P-specific parts, using Intel's downstream > > driver as a reference [2]. The code mostly generated using AI. > > > > Image capture was tested on a Surface Pro 7 (i5-1035G4) with > > both the front OV5693 and rear OV8865 cameras. Test logs: [3] > > > > Thanks to the linux-surface community and the libcamera developers for > > testing the downstream driver and sharing their findings. > > Please use git send-email to send further versions of the set if any -- > threading is broken in this version. No need to send a new version just for > that though. > Thank you for taking your personal time to review the series. I'll address your feedback, send the updated series to the linux-surface project for testing, and then post a non-RFC version upstream. I'll use git send-email for the upstream posting to preserve the thread. > -- > Kind regards, > > Sakari Ailus > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware 2026-11-03 12:36 ` Ruslan Bay @ 2026-11-03 18:36 ` andriy.shevchenko 2026-11-04 0:40 ` Ruslan Bay 0 siblings, 1 reply; 7+ messages in thread From: andriy.shevchenko @ 2026-11-03 18:36 UTC (permalink / raw) To: Ruslan Bay Cc: Sakari Ailus, linux-media@vger.kernel.org, Antti Laakso, Ricardo Ribalda, Andreas Helbech Kleist, ilpo.jarvinen@linux.intel.com, tfiga@chromium.org, senozhatsky@chromium.org, claus.stovgaard@gmail.com, tomi.valkeinen@ideasonboard.com, kieran.bingham@ideasonboard.com, Laurent Pinchart, johannes.goede@oss.qualcomm.com On Tue, Nov 03, 2026 at 12:36:26PM +0000, Ruslan Bay wrote: > On Monday, November 2nd, 2026 at 9:48 PM, Sakari Ailus <sakari.ailus@linux.intel.com> wrote: > > On Sat, Oct 31, 2026 at 12:18:19PM +0000, Ruslan Bay wrote: > > > This series adds IPU4P support to the upstream IPU6/IPU7 driver. > > > The IPU4 family includes IPU4 (Apollo Lake) and IPU4P (Ice Lake); > > > this series supports IPU4P only. > > > > > > Most of the groundwork was done by Antti Laakso in the IPU7 support > > > series [1]. I added the IPU4P-specific parts, using Intel's downstream > > > driver as a reference [2]. The code mostly generated using AI. > > > > > > Image capture was tested on a Surface Pro 7 (i5-1035G4) with > > > both the front OV5693 and rear OV8865 cameras. Test logs: [3] > > > > > > Thanks to the linux-surface community and the libcamera developers for > > > testing the downstream driver and sharing their findings. > > > > Please use git send-email to send further versions of the set if any -- > > threading is broken in this version. No need to send a new version just for > > that though. > > Thank you for taking your personal time to review the series. > > I'll address your feedback, send the updated series to the linux-surface project for testing, and then post a non-RFC version upstream. I'll use git send-email for the upstream posting to preserve the thread. Have you written this reply with AI assistance? This promise already is broken as I pointed out to the very same issue in RFC v1. I highly recommend to reduce AI usage and start doing something. -- With Best Regards, Andy Shevchenko ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware 2026-11-03 18:36 ` andriy.shevchenko @ 2026-11-04 0:40 ` Ruslan Bay 2026-11-04 6:02 ` Laurent Pinchart 0 siblings, 1 reply; 7+ messages in thread From: Ruslan Bay @ 2026-11-04 0:40 UTC (permalink / raw) To: andriy.shevchenko@linux.intel.com Cc: Sakari Ailus, linux-media@vger.kernel.org, Antti Laakso, Ricardo Ribalda, Andreas Helbech Kleist, ilpo.jarvinen@linux.intel.com, tfiga@chromium.org, senozhatsky@chromium.org, claus.stovgaard@gmail.com, tomi.valkeinen@ideasonboard.com, kieran.bingham@ideasonboard.com, Laurent Pinchart, johannes.goede@oss.qualcomm.com I sent the email in a hurry from my phone and forgot to check the line length. If that's the issue, fair enough. Now, about doing something... I'm genuinely trying to keep this discussion constructive. But if you wanna go there... as someone who owns an Intel-based device (and, unfortunately, is also an Intel shareholder), I have a few things to say. IPU4 has been around for 10 years, yet Intel engineers never made a serious effort to get the driver upstream. Instead, the driver was renamed and sold to their managers as a new IPU6, even though it shares more than 85% of its codebase with IPU4. Then the same approach seemed to be repeated with IPU7 - the existing IPU6 driver was renamed and even managed to make it into staging. I understand that this makes internal KPIs look better: more lines of code, new repositories. But it also makes it unnecessarily difficult for third-party developers to understand, maintain, and contribute to these drivers. And this isn't an Intel-specific problem. Qualcomm, MediaTek, and other vendors have similar issues. They announce a new product, I get excited about it, and then I wait a year or more for proper mainline support. By that point, I'm already over it. Why would I buy hardware that doesn't properly run the software I use? Why would I buy an outdated device that's going to be abandoned by its manufacturer after 3–4 years? I understand that Intel sells hardware, and that releasing a new socket every year forces customers to buy new motherboards with more Intel chips on them. But customers aren't stupid. We care about long-term support, compatibility, and whether the hardware we buy will actually work with the software we use. This is one of the reasons Intel is losing customers to AMD. And I can assure you that the next device I buy isn't going to be Intel-based. It's probably not even going to be a PC. I spent my own time getting the abandoned downstream IPU4 driver to work with recent kernels. Now I'm trying to make it more upstream-friendly, hoping that one day I'll be able to run a mainline kernel on my 7(!)-year-old tablet. I guess something about that upsets you. For full disclosure this email is AI-generated. On Tuesday, November 3rd, 2026 at 7:36 PM, andriy.shevchenko@linux.intel.com <andriy.shevchenko@linux.intel.com> wrote: > On Tue, Nov 03, 2026 at 12:36:26PM +0000, Ruslan Bay wrote: > > On Monday, November 2nd, 2026 at 9:48 PM, Sakari Ailus <sakari.ailus@linux.intel.com> wrote: > > > On Sat, Oct 31, 2026 at 12:18:19PM +0000, Ruslan Bay wrote: > > > > This series adds IPU4P support to the upstream IPU6/IPU7 driver. > > > > The IPU4 family includes IPU4 (Apollo Lake) and IPU4P (Ice Lake); > > > > this series supports IPU4P only. > > > > > > > > Most of the groundwork was done by Antti Laakso in the IPU7 support > > > > series [1]. I added the IPU4P-specific parts, using Intel's downstream > > > > driver as a reference [2]. The code mostly generated using AI. > > > > > > > > Image capture was tested on a Surface Pro 7 (i5-1035G4) with > > > > both the front OV5693 and rear OV8865 cameras. Test logs: [3] > > > > > > > > Thanks to the linux-surface community and the libcamera developers for > > > > testing the downstream driver and sharing their findings. > > > > > > Please use git send-email to send further versions of the set if any -- > > > threading is broken in this version. No need to send a new version just for > > > that though. > > > > Thank you for taking your personal time to review the series. > > > > I'll address your feedback, send the updated series to the linux-surface project for testing, and then post a non-RFC version upstream. I'll use git send-email for the upstream posting to preserve the thread. > > Have you written this reply with AI assistance? This promise already is broken > as I pointed out to the very same issue in RFC v1. I highly recommend to reduce > AI usage and start doing something. > > -- > With Best Regards, > Andy Shevchenko > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware 2026-11-04 0:40 ` Ruslan Bay @ 2026-11-04 6:02 ` Laurent Pinchart 0 siblings, 0 replies; 7+ messages in thread From: Laurent Pinchart @ 2026-11-04 6:02 UTC (permalink / raw) To: Ruslan Bay Cc: andriy.shevchenko@linux.intel.com, Sakari Ailus, linux-media@vger.kernel.org, Antti Laakso, Ricardo Ribalda, Andreas Helbech Kleist, ilpo.jarvinen@linux.intel.com, tfiga@chromium.org, senozhatsky@chromium.org, claus.stovgaard@gmail.com, tomi.valkeinen@ideasonboard.com, kieran.bingham@ideasonboard.com, johannes.goede@oss.qualcomm.com On Wed, Nov 04, 2026 at 12:40:17AM +0000, Ruslan Bay wrote: > > I sent the email in a hurry from my phone and forgot to check the > line length. If that's the issue, fair enough. > > Now, about doing something... > > I'm genuinely trying to keep this discussion constructive. But if you wanna > go there... as someone who owns an Intel-based device (and, unfortunately, > is also an Intel shareholder), I have a few things to say. > > IPU4 has been around for 10 years, yet Intel engineers never made a serious > effort to get the driver upstream. Instead, the driver was renamed and sold > to their managers as a new IPU6, even though it shares more than 85% of > its codebase with IPU4. Then the same approach seemed to be repeated with > IPU7 - the existing IPU6 driver was renamed and even managed to make it into > staging. > > I understand that this makes internal KPIs look better: more lines of code, > new repositories. But it also makes it unnecessarily difficult for > third-party developers to understand, maintain, and contribute to these > drivers. > > And this isn't an Intel-specific problem. Qualcomm, MediaTek, and other > vendors have similar issues. They announce a new product, I get excited > about it, and then I wait a year or more for proper mainline support. > By that point, I'm already over it. Why would I buy hardware that doesn't > properly run the software I use? Why would I buy an outdated device > that's going to be abandoned by its manufacturer after 3–4 years? > > I understand that Intel sells hardware, and that releasing a new socket > every year forces customers to buy new motherboards with more Intel chips > on them. But customers aren't stupid. We care about long-term support, > compatibility, and whether the hardware we buy will actually work with the > software we use. This is one of the reasons Intel is losing customers to > AMD. And I can assure you that the next device I buy isn't going to be > Intel-based. It's probably not even going to be a PC. > > I spent my own time getting the abandoned downstream IPU4 driver to work with > recent kernels. Now I'm trying to make it more upstream-friendly, hoping > that one day I'll be able to run a mainline kernel on my 7(!)-year-old tablet. > I guess something about that upsets you. > > For full disclosure this email is AI-generated. Ruslan, if you can't even be bothered to write this e-mail yourself and instead delegate conveying feeling to a machine, I don't think you can expect much. The ipu6 isn't my driver, so it's not my call, but if it was me I would just plainly reject this very rude behaviour and the whole series. Supporting your hardware is no justification for such behaviour. > On Tuesday, November 3rd, 2026 at 7:36 PM, andriy.shevchenko@linux.intel.com wrote: > > On Tue, Nov 03, 2026 at 12:36:26PM +0000, Ruslan Bay wrote: > > > On Monday, November 2nd, 2026 at 9:48 PM, Sakari Ailus <sakari.ailus@linux.intel.com> wrote: > > > > On Sat, Oct 31, 2026 at 12:18:19PM +0000, Ruslan Bay wrote: > > > > > This series adds IPU4P support to the upstream IPU6/IPU7 driver. > > > > > The IPU4 family includes IPU4 (Apollo Lake) and IPU4P (Ice Lake); > > > > > this series supports IPU4P only. > > > > > > > > > > Most of the groundwork was done by Antti Laakso in the IPU7 support > > > > > series [1]. I added the IPU4P-specific parts, using Intel's downstream > > > > > driver as a reference [2]. The code mostly generated using AI. > > > > > > > > > > Image capture was tested on a Surface Pro 7 (i5-1035G4) with > > > > > both the front OV5693 and rear OV8865 cameras. Test logs: [3] > > > > > > > > > > Thanks to the linux-surface community and the libcamera developers for > > > > > testing the downstream driver and sharing their findings. > > > > > > > > Please use git send-email to send further versions of the set if any -- > > > > threading is broken in this version. No need to send a new version just for > > > > that though. > > > > > > Thank you for taking your personal time to review the series. > > > > > > I'll address your feedback, send the updated series to the linux-surface project for testing, and then post a non-RFC version upstream. I'll use git send-email for the upstream posting to preserve the thread. > > > > Have you written this reply with AI assistance? This promise already is broken > > as I pointed out to the very same issue in RFC v1. I highly recommend to reduce > > AI usage and start doing something. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware 2026-10-31 12:18 [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware Ruslan Bay 2026-11-02 20:48 ` Sakari Ailus @ 2026-11-24 19:52 ` Daniel Tang 1 sibling, 0 replies; 7+ messages in thread From: Daniel Tang @ 2026-11-24 19:52 UTC (permalink / raw) To: ruslanbey, linux-media > This series adds IPU4P support to the upstream IPU6/IPU7 driver. Tested-by: Daniel Tang <danielzgtg.opensource@gmail.com> # Surface Pro 7 i7 Front and back cameras work in qcam, kamoso, and gnome-snapshot with default settings via libcamera. More websites in Firefox work with a PipeWire workaround to force a resolution above 1000x1000. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-11-24 19:52 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-10-31 12:18 [RFC PATCH v2 00/12] media: ipu6: Add support for IPU4P hardware Ruslan Bay 2026-11-02 20:48 ` Sakari Ailus 2026-11-03 12:36 ` Ruslan Bay 2026-11-03 18:36 ` andriy.shevchenko 2026-11-04 0:40 ` Ruslan Bay 2026-11-04 6:02 ` Laurent Pinchart 2026-11-24 19:52 ` Daniel Tang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox