media: ipu6: add IPU8 support
Subsystems (2)
v2 cover media: ipu6: add IPU8 support
This series adds IPU8 support to the unified ipu6 driver (drivers/media/pci/intel/ipu6), porting the applicable parts of the existing "staging: ipu7" IPU8 enablement and completing the pieces that staging left out, or that this driver's different internal structure (no abi/ split, single shared power-sequencing path) required to be done differently.
IPU8 shares its InSys firmware ABI, buttress and MMU/ZLX/UAO hardware generation with IPU7/IPU7P5, so most of this series is chip identification, PCI probe wiring, and porting/adapting the existing IPU7-family codepaths and hardware tables rather than introducing new driver infrastructure.
Scope: ISYS (raw frame capture) is the primary target and what has been validated on real hardware. PSYS platform enablement (MMU table and PLL power sequencing) is included because staging ipu7 already ships it as part of its original upstream submission - porting it here is not new, unreviewed psys pipeline support, just completing hardware enablement that already exists upstream in the sibling driver. This driver still has no psys pipeline consumer, so it only affects the psys bus device's power sequencing and MMU setup, not a processing pipeline.
Patch summary:
- Patches 1-2 bring the InSys firmware ABI up to date and add IPU8 chip identification (IS_IPU8()).
- Patch 3 adds the IPU8-specific (ABI 1.0.14) InSys message layout and selects the firmware boot-message major version IPU8 expects; without it the IPU8 firmware rejects the boot handshake (IA_GOFO_FW_BOOT_STATE_CRIT_MSG_VERSION, 0xdead0301), confirmed on real hardware.
- Patch 4 makes the ipu7 GPREG stride configurable, since IPU8/NVL uses a different stride than IPU7/IPU7P5.
- Patch 5 completes ISYS chip/MMU enablement (NDE/TLBID_HASH register values, TSC sync, ISYS MMU/ZLX/UAO hardware table); adds IS_IPU8() alongside the existing IS_IPU7() check at each site that needs to follow the IPU7-family codepath, keeping the two checks independent instead of widening IS_IPU7() to also match IPU8. Without it IPU8 firmware boot fails with IA_GOFO_FW_BOOT_STATE_CRIT_UNSPECIFIED (0xdead0001), also confirmed on real hardware.
- Patch 6 completes PSYS platform enablement (MMU table, PLL power sequencing).
- Patch 7 adds the IPU8 PCI device ID, wires up the probe, and adds IPU8's own buttress control ratio.
All hardware table/register values are transcribed from the corresponding staging ipu7 tables (same silicon), not re-derived.
Validation: compiles cleanly (W=1); tested on real IPU8 hardware with two OV13B10 sensors - driver probes, ISYS firmware boots, and the media controller topology enumerates both sensors' CSI2/capture nodes correctly. Series verified with checkpatch.pl --strict (0 errors, 0 warnings) and applies cleanly on top of next.
Changes since v1:
- Patch 3 ("add IPU8 InSys ABI 1.0.14 support"): copy the union member into a local struct via plain assignment instead of memcpy(), since a type-safe copy of msg->ipu7.stream is simpler and the union still requires copying it out before overwriting it in place (Sakari Ailus).
- Patch 4 ("make ipu7 gpreg stride configurable as per IPU version"):
use separate IS_IPU7()/IS_IPU8() checks in ipu6_internal_pdata_init() instead of an if/else, so a third/unknown IPU version isn't silently treated as IPU7.
Divyamani Tripathi (7):
media: ipu6: update ipu7 InSys ABI to 1.2.1.20251215_224531
media: ipu6: add IS_IPU8() macro
media: ipu6: add IPU8 InSys ABI 1.0.14 support
media: ipu6: make ipu7 gpreg stride configurable as per IPU version
media: ipu6: add IPU8 isys chip/MMU enablement
media: ipu6: add IPU8 psys MMU table and PLL power sequencing
media: ipu6: add PCI ID for IPU8
drivers/media/pci/intel/ipu6/ipu6-buttress.c | 61 +++- drivers/media/pci/intel/ipu6/ipu6-cpd.c | 2 +- drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c | 15 +- drivers/media/pci/intel/ipu6/ipu6-isys.c | 14 +- drivers/media/pci/intel/ipu6/ipu6-isys.h | 3 + drivers/media/pci/intel/ipu6/ipu6-mmu.c | 4 +- .../intel/ipu6/ipu6-platform-buttress-regs.h | 6 + drivers/media/pci/intel/ipu6/ipu6.c | 59 +++- drivers/media/pci/intel/ipu6/ipu6.h | 5 + drivers/media/pci/intel/ipu6/ipu7-fw-isys.c | 85 +++++- drivers/media/pci/intel/ipu6/ipu7-fw-isys.h | 78 +++++- .../media/pci/intel/ipu6/ipu7-isys-csi-phy.c | 6 +- .../pci/intel/ipu6/ipu7-isys-csi2-regs.h | 2 + drivers/media/pci/intel/ipu6/ipu7-mmu-hw.c | 262 +++++++++++++++++- drivers/media/pci/intel/ipu6/ipu7-mmu-hw.h | 115 ++++++++ include/media/ipu6-pci-table.h | 2 + 16 files changed, 674 insertions(+), 45 deletions(-)
Signature · 1 line
2.43.0
PATCH v2 1/7 media: ipu6: update ipu7 InSys ABI to 1.2.1.20251215_224531
Drop the retired IPU_INSYS_RESP_TYPE_PWM_IRQ response type and add the mipi_fn field the firmware now reports in its place, matching staging ipu7's ABI bump. The boot-ABI and psys message changes from that commit don't apply here: this driver has no equivalents to touch.
--- drivers/media/pci/intel/ipu6/ipu7-fw-isys.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/media/pci/intel/ipu6/ipu7-fw-isys.h +6 -2
@@ -4,6 +4,8 @@#ifndef IPU7_FW_ISYS_H #define IPU7_FW_ISYS_H +#include <linux/limits.h> +#define IPU7_FWLOG_MAX_LOGGER_SOURCES (64U)#define IPU7_INSYS_MAX_OUTPUT_QUEUES 3U#define IPU7_INSYS_STREAM_ID_MAX 16U
@@ -24,6 +26,9 @@#define IPU7_ISYS_NUM_RECV_QUEUE 1U#define IPU7_INSYS_SEND_QUEUE_TOKEN_FLAG_NONE 0U +/* Value of mipi_fn below when firmware ABI < 1.2.1 does not report it. */ +#define IPU7_INSYS_MIPI_FRAME_NUMBER_DONT_CARE U16_MAX +#define IPU7_LOGGER_CFG_CHANNEL_ENABLE_SYSCOM BIT(1)#define IPU7_ISYS_MAX_STREAMS 16U
@@ -107,7 +112,6 @@ enum ipu7_insys_resp_type {IPU7_INSYS_RESP_TYPE_FRAME_EOF =8 ,IPU7_INSYS_RESP_TYPE_STREAM_START_AND_CAPTURE_DONE =9 ,IPU7_INSYS_RESP_TYPE_STREAM_CAPTURE_DONE =10 , -IPU7_INSYS_RESP_TYPE_PWM_IRQ =11 , N_IPU7_INSYS_RESP_TYPE };
@@ -198,7 +202,7 @@ struct ipu7_insys_resp {u8 pin_id;u8 frame_id;u8 skip_frame; -u8 pad[2 ]; +u16 mipi_fn; };struct ipu7_insys_resp_queue_token {
Signature · 1 line
2.43.0
PATCH v2 2/7 media: ipu6: add IS_IPU8() macro
In reply to Divyamani TripathiAdd IPU_VERSION_8 and an IS_IPU8() accessor mirroring IS_IPU7()/IS_IPU7P5(), plus the IPU8 firmware/model name defines, as the baseline for the rest of this series.
--- drivers/media/pci/intel/ipu6/ipu6.h | 4 ++++ 1 file changed, 4 insertions(+)
drivers/media/pci/intel/ipu6/ipu6.h +4 -0
@@ -18,6 +18,7 @@ struct ipu6_bus_device;#define IPU6_MEDIA_DEV_MODEL_NAME "ipu6"#define IPU7_MEDIA_DEV_MODEL_NAME "ipu7"#define IPU7P5_MEDIA_DEV_MODEL_NAME "ipu7.5" +#define IPU8_MEDIA_DEV_MODEL_NAME "ipu8"#define IPU6SE_FIRMWARE_NAME "intel/ipu/ipu6se_fw.bin"#define IPU6EP_FIRMWARE_NAME "intel/ipu/ipu6ep_fw.bin"
@@ -26,6 +27,7 @@ struct ipu6_bus_device;#define IPU6EPADLN_FIRMWARE_NAME "intel/ipu/ipu6epadln_fw.bin"#define IPU7_FIRMWARE_NAME "intel/ipu/ipu7_fw.bin"#define IPU7P5_FIRMWARE_NAME "intel/ipu/ipu7ptl_fw.bin" +#define IPU8_FIRMWARE_NAME "intel/ipu/ipu8_fw.bin"#define IPU_VERSION_6 BIT(0)/* TGL */ #define IPU_VERSION_6SE BIT(1)/* JSL */
@@ -33,6 +35,7 @@ struct ipu6_bus_device;#define IPU_VERSION_6EP_MTL BIT(3)/* MTL */ #define IPU_VERSION_7 BIT(4)/* LNL */ #define IPU_VERSION_7P5 BIT(5)/* PTL */ +#define IPU_VERSION_8 BIT(6)/* NVL */ #define IS_IPU6_TGL (isp) ((isp)->hw_ver & IPU_VERSION_6)#define IS_IPU6SE (isp) ((isp)->hw_ver & IPU_VERSION_6SE)
@@ -42,6 +45,7 @@ struct ipu6_bus_device; (IPU_VERSION_7 | IPU_VERSION_7P5))#define IS_IPU7_MTL (isp) ((isp)->hw_ver & IPU_VERSION_7)#define IS_IPU7P5 (isp) ((isp)->hw_ver & IPU_VERSION_7P5) +#define IS_IPU8 (isp) ((isp)->hw_ver & IPU_VERSION_8)/* * ISYS DMA can overshoot. For higher resolutions over allocation is one line
Signature · 1 line
2.43.0
PATCH v2 3/7 media: ipu6: add IPU8 InSys ABI 1.0.14 support
In reply to Divyamani TripathiFirmware ABI 1.0.14 diverges from IPU7's InSys message layout (uPipe config, CFA dimension, binning factor, wider output cropping) and expects boot-message major version 2 instead of IPU7's 1; without the version fix the IPU8 firmware rejects the boot handshake with IA_GOFO_FW_BOOT_STATE_CRIT_MSG_VERSION (0xdead0301), confirmed on real hardware.
Add the IPU8 layout as additional '_ipu8' structs and convert to it at send time when running on IPU8, keeping the existing IPU7 layout as the shared driver-internal representation used by the common isys queue/video code.
---
Changes since v1:
- Copy msg->ipu7.stream/frame into the local struct via plain assignment instead of memcpy(), the union still needs an explicit copy before isys_stream_cfg_to_ipu8()/isys_buffset_to_ipu8() overwrite it in place (Sakari Ailus).
drivers/media/pci/intel/ipu6/ipu6-isys.h | 3 + drivers/media/pci/intel/ipu6/ipu7-fw-isys.c | 85 +++++++++++++++++++-- drivers/media/pci/intel/ipu6/ipu7-fw-isys.h | 70 +++++++++++++++++ 3 files changed, 151 insertions(+), 7 deletions(-)
drivers/media/pci/intel/ipu6/ipu6-isys.h +3 -0
@@ -139,6 +139,9 @@ struct isys_fw_msgs {union {struct ipu7_fw_isys_frame_buff_set frame;struct ipu7_fw_isys_stream_cfg stream; +/* sizes the union for the larger IPU8 (ABI 1.0.14) layout */ +struct ipu7_fw_isys_frame_buff_set_ipu8 frame_ipu8; +struct ipu7_fw_isys_stream_cfg_ipu8 stream_ipu8; } ipu7; };struct list_head head;
drivers/media/pci/intel/ipu6/ipu7-fw-isys.c +78 -7
118 lines not on this page · raw message
drivers/media/pci/intel/ipu6/ipu7-fw-isys.h +70 -0
106 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v2 4/7 media: ipu6: make ipu7 gpreg stride configurable as per IPU version
In reply to Divyamani TripathiIPU8's GPREG stride is 0x2000, not IPU7's hardcoded 0x1000. Add csi2.gpreg_stride and use it in the two gpreg accessors instead of the fixed value, wiring it up for both IPU7 and IPU8 in ipu6_internal_pdata_init().
---
Changes since v1:
- Use separate "if (IS_IPU7(isp))" / "if (IS_IPU8(isp))" blocks in ipu6_internal_pdata_init() instead of "if (IS_IPU8(isp)) { ... } else { ... }", so a third/unknown IPU version can't silently fall into the IPU7 branch just because it isn't IPU8.
drivers/media/pci/intel/ipu6/ipu6.c | 7 +++++++ drivers/media/pci/intel/ipu6/ipu6.h | 1 + drivers/media/pci/intel/ipu6/ipu7-isys-csi-phy.c | 6 ++++-- drivers/media/pci/intel/ipu6/ipu7-isys-csi2-regs.h | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-)
drivers/media/pci/intel/ipu6/ipu6.c +7 -0
@@ -373,6 +373,13 @@ static void ipu6_internal_pdata_init(struct ipu6_device *isp)if (IS_IPU7 (isp)) { isys_ipdata.csi2.gpreg =IPU7_IS_IO_CSI2_GPREGS_BASE ; + isys_ipdata.csi2.gpreg_stride =IPU7_IS_IO_CSI2_GPREGS_STRIDE ; + isys_ipdata.csi2.nports =4 ; + } + +if (IS_IPU8 (isp)) { + isys_ipdata.csi2.gpreg =IPU8_IS_IO_CSI2_GPREGS_BASE ; + isys_ipdata.csi2.gpreg_stride =IPU8_IS_IO_CSI2_GPREGS_STRIDE ; isys_ipdata.csi2.nports =4 ; } }
drivers/media/pci/intel/ipu6/ipu6.h +1 -0
@@ -147,6 +147,7 @@ struct ipu6_isys_internal_csi2_pdata {u32 fw_access_port_ofs;/* IPU7-specific field */ u32 gpreg; +u32 gpreg_stride; };struct ipu6_isys_internal_tpg_pdata {
drivers/media/pci/intel/ipu6/ipu7-isys-csi-phy.c +4 -2
@@ -167,7 +167,8 @@ static void gpreg_write(struct ipu6_isys *isys, u32 id, u32 addr, u32 data) {void __iomem *isys_base = isys->pdata->base;u32 gpreg = isys->pdata->ipdata->csi2.gpreg; -void __iomem *base = isys_base + gpreg +0x1000 * id; +void __iomem *base = isys_base + gpreg + + isys->pdata->ipdata->csi2.gpreg_stride * id;struct device *dev = &isys->adev->auxdev.dev; dev_dbg(dev, "gpreg write: reg 0x%lx = data 0x%08x",
@@ -344,7 +345,8 @@ static int ipu7_isys_phy_ready(struct ipu6_isys *isys, u32 id) {void __iomem *isys_base = isys->pdata->base;u32 gpreg_offset = isys->pdata->ipdata->csi2.gpreg; -void __iomem *gpreg = isys_base + gpreg_offset +0x1000 * id; +void __iomem *gpreg = isys_base + gpreg_offset + + isys->pdata->ipdata->csi2.gpreg_stride * id;struct device *dev = &isys->adev->auxdev.dev;u32 phy_ready;u32 reg, rext;
drivers/media/pci/intel/ipu6/ipu7-isys-csi2-regs.h +2 -0
@@ -968,7 +968,9 @@/* software config the phy */ #define IPU7_IS_IO_CSI2_GPREGS_BASE (IPU7_IS_IO_BASE + 0x53400) +#define IPU7_IS_IO_CSI2_GPREGS_STRIDE 0x1000#define IPU8_IS_IO_CSI2_GPREGS_BASE (IPU7_IS_IO_BASE + 0x40e00) +#define IPU8_IS_IO_CSI2_GPREGS_STRIDE 0x2000#define IPU7_CSI_ADAPT_LAYER_SRST 0x0#define IPU7_MPF_SRST_RST 0x4#define IPU7_CSI_ERR_IRQ_CTRL_SRST 0x8
Signature · 1 line
2.43.0
Sakari Ailus
maintainerRe: [PATCH v2 4/7] media: ipu6: make ipu7 gpreg stride configurable as per IPU version
Hi Divyamani,
Quoted 24 lines · Divyamani Tripathi
IPU8's GPREG stride is
0x2000, not IPU7's hardcoded0x1000. Add csi2.gpreg_stride and use it in the two gpreg accessors instead of the fixed value, wiring it up for both IPU7 and IPU8 inipu6_internal_pdata_init().Signed-off-by Divyamani Tripathi <[email protected]>---
Changes since v1:
- Use separate "if (IS_IPU7(isp))" / "if (IS_IPU8(isp))" blocks inipu6_internal_pdata_init()instead of "if (IS_IPU8(isp)) { ... } else { ... }", so a third/unknown IPU version can't silently fall into the IPU7 branch just because it isn't IPU8.drivers/media/pci/intel/ipu6/ipu6.c | 7 +++++++ drivers/media/pci/intel/ipu6/ipu6.h | 1 + drivers/media/pci/intel/ipu6/ipu7-isys-csi-phy.c | 6 ++++-- drivers/media/pci/intel/ipu6/ipu7-isys-csi2-regs.h | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-)drivers/media/pci/intel/ipu6/ipu6.c +0
-0
drivers/media/pci/intel/ipu6/ipu6.c static void ipu6_internal_pdata_init(struct ipu6_device *isp) · line 378
Quoted 6 lines
drivers/media/pci/intel/ipu6/ipu6.c +3
-0@@ -373,6 +373,13 @@ static void ipu6_internal_pdata_init(struct ipu6_device *isp)if (IS_IPU7 (isp)) { isys_ipdata.csi2.gpreg =IPU7_IS_IO_CSI2_GPREGS_BASE ; + isys_ipdata.csi2.gpreg_stride =IPU7_IS_IO_CSI2_GPREGS_STRIDE ; + isys_ipdata.csi2.nports =4 ; + }
An else branch would be appropriate here, as both won't be true at the same time.
Quoted 7 lines
drivers/media/pci/intel/ipu6/ipu6.c +4
-0+ +if (IS_IPU8 (isp)) { + isys_ipdata.csi2.gpreg =IPU8_IS_IO_CSI2_GPREGS_BASE ; + isys_ipdata.csi2.gpreg_stride =IPU8_IS_IO_CSI2_GPREGS_STRIDE ; isys_ipdata.csi2.nports =4 ; } }
Signature · 3 lines
Regards, Sakari Ailus
PATCH v2 5/7 media: ipu6: add IPU8 isys chip/MMU enablement
In reply to Divyamani TripathiComplete IPU8 ISYS enablement: add the IPU8 NDE control register, TSC sync variant, TLBID_HASH bits and ISYS MMU hardware table. Add IS_IPU8() alongside the existing IS_IPU7() check at each site in ipu6.c, ipu6-buttress.c, ipu6-isys.c, ipu6-isys-csi2.c, ipu6-cpd.c and ipu6-mmu.c that needs to follow the IPU7-family codepath, keeping the two checks independent instead of widening IS_IPU7() to also match IPU8. Without this IPU8 firmware boot fails with IA_GOFO_FW_BOOT_STATE_CRIT_UNSPECIFIED (0xdead0001), confirmed on real hardware. PSYS-specific pieces are intentionally left out here.
--- drivers/media/pci/intel/ipu6/ipu6-buttress.c | 44 ++++-- drivers/media/pci/intel/ipu6/ipu6-cpd.c | 2 +- drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c | 15 +- drivers/media/pci/intel/ipu6/ipu6-isys.c | 14 +- drivers/media/pci/intel/ipu6/ipu6-mmu.c | 4 +- .../intel/ipu6/ipu6-platform-buttress-regs.h | 2 + drivers/media/pci/intel/ipu6/ipu6.c | 12 +- drivers/media/pci/intel/ipu6/ipu7-mmu-hw.c | 145 +++++++++++++++++- drivers/media/pci/intel/ipu6/ipu7-mmu-hw.h | 64 ++++++++ 9 files changed, 269 insertions(+), 33 deletions(-)
drivers/media/pci/intel/ipu6/ipu6-buttress.c +35 -9
@@ -346,7 +346,7 @@ irqreturn_t ipu6_buttress_isr(int irq, void *isp_ptr)if (!active)return IRQ_NONE ; -if (IS_IPU7 (isp)) { +if (IS_IPU7 (isp) ||IS_IPU8 (isp)) {u32 pb_irq; pb_irq =readl (isp->pb_base +IPU7_PB_INTERRUPT_STATUS );
@@ -478,6 +478,9 @@ static int ipu7_isys_d2d_power(struct ipu6_device *isp, bool on)static void ipu7_nde_control (struct ipu6_device *isp,bool on) { +u32 resvec =IS_IPU8 (isp) ?IPU8_NDE_RESVEC :IPU7_NDE_RESVEC ; +u32 reg =IS_IPU8 (isp) ?IPU8_BUTTRESS_REG_NDE_CONTROL : +IPU7_BUTTRESS_REG_NDE_CONTROL ;u32 val; val = FIELD_PREP(IPU7_NDE_VAL_MASK,
@@ -486,8 +489,8 @@ static void ipu7_nde_control(struct ipu6_device *isp, bool on) on ? IPU7_NDE_SCALE_ACTIVE : IPU7_NDE_SCALE_DEFAULT) |FIELD_PREP (IPU7_NDE_VALID_MASK , on ?IPU7_NDE_VALID_ACTIVE :IPU7_NDE_VALID_DEFAULT ) | -FIELD_PREP (IPU7_NDE_RESVEC_MASK ,IPU7_NDE_RESVEC ); -writel (val, isp->base +IPU7_BUTTRESS_REG_NDE_CONTROL ); +FIELD_PREP (IPU7_NDE_RESVEC_MASK , resvec); +writel (val, isp->base + reg); } static int __ipu7_power_on(struct device *dev,
@@ -612,7 +615,7 @@ int ipu6_buttress_power(struct device *dev,mutex_lock (&isp->buttress.power_mutex); -if (IS_IPU7 (isp)) +if (IS_IPU7 (isp) ||IS_IPU8 (isp)) ret = on ?__ipu7_power_on (dev, ctrl) :__ipu7_power_off (dev, ctrl);else
@@ -775,7 +778,7 @@ int ipu6_buttress_authenticate(struct ipu6_device *isp)* Write address of FIT table to FW_SOURCE register * Let's use fw address. I.e. not using FIT table yet */ -if (IS_IPU7 (isp)) { +if (IS_IPU7 (isp) ||IS_IPU8 (isp)) {writel (isp->cpd_fw->size, isp->base +IPU7_BUTTRESS_REG_FW_SOURCE_SIZE ); writel(sg_dma_address(isp->psys->fw_sgt.sgl),
@@ -822,7 +825,7 @@ int ipu6_buttress_authenticate(struct ipu6_device *isp) goto out_unlock; } -void __iomem *base =IS_IPU7 (isp) ? +void __iomem *base = (IS_IPU7 (isp) ||IS_IPU8 (isp)) ? isp->base +IPU7_BUTTRESS_REG_FW_BOOT_PARAMS7 : psys_pdata->base +BOOTLOADER_STATUS_OFFSET ;
@@ -922,6 +925,23 @@ static int __ipu7p5_start_tsc_sync(struct ipu6_device *isp)return -ETIMEDOUT ; } +static int __ipu8_start_tsc_sync (struct ipu6_device *isp) +{ +u32 val; + +for (unsigned int i =0 ; i <BUTTRESS_TSC_SYNC_RESET_TRIAL_MAX ; i++) { + val =readl (isp->base +IPU7_BUTTRESS_REG_PB_TIMESTAMP_VALID ); +if (val ==1 ) +return 0 ; + +usleep_range (40 ,50 ); + } + +dev_err (&isp->pdev->dev,"TSC sync failed (timeout)\n" ); + +return -ETIMEDOUT ; +} +static int __ipu6_start_tsc_sync (struct ipu6_device *isp) {for (unsigned int i =0 ; i <BUTTRESS_TSC_SYNC_RESET_TRIAL_MAX ; i++) {
@@ -948,6 +968,9 @@ static int __ipu6_start_tsc_sync(struct ipu6_device *isp)int ipu6_buttress_start_tsc_sync (struct ipu6_device *isp) { +if (IS_IPU8 (isp)) +return __ipu8_start_tsc_sync (isp); +if (IS_IPU7P5 (isp))return __ipu7p5_start_tsc_sync (isp);
@@ -1037,7 +1060,10 @@ static void ipu7_buttress_setup(struct ipu6_device *isp)writel (val, isp->pb_base +IPU7_BAR2_MISC_CONFIG ); -if (IS_IPU7P5 (isp)) { +if (IS_IPU8 (isp)) { +writel (BIT (13 ), isp->pb_base +IPU7_TLBID_HASH_ENABLE_63_32 ); +writel (BIT (9 ), isp->pb_base +IPU7_TLBID_HASH_ENABLE_95_64 ); + }else if (IS_IPU7P5 (isp)) {writel (BIT (14 ), isp->pb_base +IPU7_TLBID_HASH_ENABLE_63_32 );writel (BIT (9 ), isp->pb_base +IPU7_TLBID_HASH_ENABLE_95_64 ); }else {
@@ -1057,7 +1083,7 @@ void ipu6_buttress_restore(struct ipu6_device *isp) {struct ipu6_buttress *b = &isp->buttress; -if (IS_IPU7 (isp)) { +if (IS_IPU7 (isp) ||IS_IPU8 (isp)) {ipu7_buttress_setup (isp); }else {writel (b->regs->irq_all, isp->base + b->regs->irq_clear);
@@ -1085,7 +1111,7 @@ int ipu6_buttress_init(struct ipu6_device *isp)dev_dbg (&isp->pdev->dev,"IPU in %s mode\n" , isp->secure_mode ?"secure" :"non-secure" ); -if (IS_IPU7 (isp)) { +if (IS_IPU7 (isp) ||IS_IPU8 (isp)) {ipu7_buttress_setup (isp); b->ref_clk =384 ; }else {
drivers/media/pci/intel/ipu6/ipu6-cpd.c +1 -1
@@ -454,7 +454,7 @@ int ipu6_cpd_validate_cpd_file(struct ipu6_device *isp, const void *cpd_file,return -EINVAL ; } -if (IS_IPU7 (isp)) +if (IS_IPU7 (isp) ||IS_IPU8 (isp))return __ipu7_validate_cpd_file (isp, cpd_file, cpd_file_size);return __ipu6_validate_cpd_file (isp, cpd_file, cpd_file_size);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c +9 -6
@@ -244,7 +244,8 @@ static void ipu6_isys_csi2_setup_watermark(struct ipu6_isys_csi2 *csi2,s64 link_freq;int ret; -if (IS_IPU7 (csi2->asd.isys->adev->isp)) +if (IS_IPU7 (csi2->asd.isys->adev->isp) || +IS_IPU8 (csi2->asd.isys->adev->isp))return ; ret =v4l2_g_ctrl (remote_sd->ctrl_handler, &hb);
@@ -298,7 +299,8 @@ static void ipu6_isys_csi2_setup_watermark(struct ipu6_isys_csi2 *csi2,static void ipu6_isys_csi2_clear_watermark (struct ipu6_isys_csi2 *csi2) { -if (IS_IPU7 (csi2->asd.isys->adev->isp)) +if (IS_IPU7 (csi2->asd.isys->adev->isp) || +IS_IPU8 (csi2->asd.isys->adev->isp))return ; csi2->watermark.force_iwake_disable = false;
@@ -680,8 +682,9 @@ static int ipu6_isys_csi2_enable_streams(struct v4l2_subdev *sd, goto err_requeue_buffers;if (!csi2->streaming_vc) { - ret =IS_IPU7 (isp) ?ipu7_isys_csi2_stream_enable (csi2) : -ipu6_isys_csi2_stream_enable (csi2); + ret = (IS_IPU7 (isp) ||IS_IPU8 (isp)) ? +ipu7_isys_csi2_stream_enable (csi2) : +ipu6_isys_csi2_stream_enable (csi2);if (ret) goto err_stop_stream_firmware; }
@@ -696,7 +699,7 @@ static int ipu6_isys_csi2_enable_streams(struct v4l2_subdev *sd,return 0 ; err_stop_stream_csi2: -if (IS_IPU7 (isp)) +if (IS_IPU7 (isp) ||IS_IPU8 (isp))ipu7_isys_csi2_stream_disable (csi2);else ipu6_isys_csi2_stream_disable (csi2);
@@ -766,7 +769,7 @@ static int ipu6_isys_csi2_disable_streams(struct v4l2_subdev *sd,ipu6_isys_find_stream_firmware (csi2, vc);ipu6_isys_stop_stream_firmware (stream); - if IS_IPU7(isp) +if (IS_IPU7 (isp) ||IS_IPU8 (isp))ipu7_isys_csi2_stream_disable (csi2);else ipu6_isys_csi2_stream_disable (csi2);
drivers/media/pci/intel/ipu6/ipu6-isys.c +7 -7
@@ -186,7 +186,7 @@ static int isys_csi2_register_subdevices(struct ipu6_isys *isys)for (i =0 ; i < csi2_pdata->nports; i++) {void __iomem *base = isys->pdata->base; -if (IS_IPU7 (isys->adev->isp)) { +if (IS_IPU7 (isys->adev->isp) ||IS_IPU8 (isys->adev->isp)) {u32 mask =IS_IPU7_MTL (isys->adev->isp) ?IPU7_CSI_LEGACY_IRQ_MASK (i) :IPU7P5_CSI_LEGACY_IRQ_MASK (i);
@@ -633,7 +633,7 @@ static int isys_notifier_init(struct ipu6_isys *isys)continue ; ret =v4l2_fwnode_endpoint_parse (ep, &vep); -if (ret &&IS_IPU7 (isp)) { +if (ret && (IS_IPU7 (isp) ||IS_IPU8 (isp))) { vep.bus_type =V4L2_MBUS_CSI2_CPHY ; ret =v4l2_fwnode_endpoint_parse (ep, &vep); }
@@ -771,7 +771,7 @@ static int isys_runtime_pm_resume(struct device *dev)if (ret) goto err_mmu_hw_cleanup; -if (IS_IPU7 (isp)) { +if (IS_IPU7 (isp) ||IS_IPU8 (isp)) {ipu7_isys_setup_hw (isys); }else {ipu6_isys_setup_hw (isys);
@@ -804,7 +804,7 @@ static int isys_runtime_pm_resume(struct device *dev) isys->phy_termcal_val =0 ;cpu_latency_qos_update_request (&isys->pm_qos,PM_QOS_DEFAULT_VALUE ); -if (!IS_IPU7 (isp)) +if (!IS_IPU7 (isp) && !IS_IPU8 (isp))set_iwake_ltrdid (isys,0 ,0 ,LTR_ISYS_OFF ); err_mmu_hw_cleanup:
@@ -829,7 +829,7 @@ static int isys_runtime_pm_suspend(struct device *dev) isys->phy_termcal_val =0 ;cpu_latency_qos_update_request (&isys->pm_qos,PM_QOS_DEFAULT_VALUE ); -if (!IS_IPU7 (isp)) +if (!IS_IPU7 (isp) && !IS_IPU8 (isp))set_iwake_ltrdid (isys,0 ,0 ,LTR_ISYS_OFF );ipu6_mmu_hw_cleanup (adev->mmu);
@@ -986,7 +986,7 @@ static int isys_probe(struct auxiliary_device *auxdev,if (!isys)return -ENOMEM ; - adev->auxdrv_data =IS_IPU7 (isp) ? &ipu7_isys_auxdrv_data : + adev->auxdrv_data = (IS_IPU7 (isp) ||IS_IPU8 (isp)) ? &ipu7_isys_auxdrv_data : &ipu6_isys_auxdrv_data; adev->auxdrv =to_auxiliary_drv (auxdev->dev.driver); isys->adev = adev;
@@ -1023,7 +1023,7 @@ static int isys_probe(struct auxiliary_device *auxdev,if (ret <0 ) goto out_remove_pkg_dir_shared_buffer; -if (IS_IPU7 (adev->isp)) +if (IS_IPU7 (adev->isp) ||IS_IPU8 (adev->isp)) isys->phy_set_power = ipu7_isys_csi_phy_set_power;else if (IS_IPU6SE (adev->isp)) isys->phy_set_power = ipu6_isys_jsl_phy_set_power;
drivers/media/pci/intel/ipu6/ipu6-mmu.c +2 -2
@@ -473,7 +473,7 @@ static struct ipu6_mmu_info *ipu6_mmu_alloc(struct ipu6_device *isp)if (!mmu_info)return NULL ; -if (IS_IPU7 (isp)) +if (IS_IPU7 (isp) ||IS_IPU8 (isp)) mmu_info->aperture_start = isp->secure_mode ?IPU7_FW_CODE_REGION_END :IPU7_FW_CODE_REGION_START ;else
@@ -684,7 +684,7 @@ struct ipu6_mmu *ipu6_mmu_init(struct device *dev,if (!mmu)return ERR_PTR (-ENOMEM ); - mmu->ops =IS_IPU7 (isp) ? &ipu7_mmu_ops : &ipu6_mmu_ops; + mmu->ops = (IS_IPU7 (isp) ||IS_IPU8 (isp)) ? &ipu7_mmu_ops : &ipu6_mmu_ops; mmu->mmid = mmid; mmu->ready = false;INIT_LIST_HEAD (&mmu->vma_list);
drivers/media/pci/intel/ipu6/ipu6-platform-buttress-regs.h +2 -0
@@ -295,6 +295,7 @@ enum {/* NDE */ #define IPU7_BUTTRESS_REG_NDE_CONTROL 0x21a4 +#define IPU8_BUTTRESS_REG_NDE_CONTROL 0x21a8#define IPU7_NDE_VAL_MASK GENMASK(9, 0)#define IPU7_NDE_SCALE_MASK GENMASK(12, 10)#define IPU7_NDE_VALID_MASK BIT(13)
@@ -306,6 +307,7 @@ enum {#define IPU7_NDE_SCALE_DEFAULT 2#define IPU7_NDE_VALID_DEFAULT 0#define IPU7_NDE_RESVEC 0xe +#define IPU8_NDE_RESVEC 0x2/* IS UCX control */ #define IPU7_UCX_CTL_RESET BIT(0)
drivers/media/pci/intel/ipu6/ipu6.c +6 -6
@@ -274,7 +274,7 @@ void ipu6_configure_spc(struct ipu6_device *isp,void __iomem *spc_regs_base;u32 val; -if (IS_IPU7 (isp)) +if (IS_IPU7 (isp) ||IS_IPU8 (isp))return ; dmem_base = base + hw_variant->dmem_offset;
@@ -505,7 +505,7 @@ static void ipu6_configure_vc_mechanism(struct ipu6_device *isp) {u32 val; -if (IS_IPU7 (isp)) +if (IS_IPU7 (isp) ||IS_IPU8 (isp))return ; val =readl (isp->base +BUTTRESS_REG_BTRS_CTRL );
@@ -698,7 +698,7 @@ static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)return dev_err_probe (dev,PTR_ERR (isp->base),"Failed to I/O mem remapping\n" ); -if (IS_IPU7 (isp)) { +if (IS_IPU7 (isp) ||IS_IPU8 (isp)) { isp->pb_base =pcim_iomap_region (pdev,IPU7_PCI_PBBAR ,IPU6_NAME );if (IS_ERR (isp->pb_base))
@@ -770,7 +770,7 @@ static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto out_ipu6_rpm_put; } - ret =IS_IPU7 (isp) ?ipu7_map_fw (isp) :ipu6_map_fw (isp); + ret = (IS_IPU7 (isp) ||IS_IPU8 (isp)) ?ipu7_map_fw (isp) :ipu6_map_fw (isp);if (ret) goto out_ipu6_rpm_put;
@@ -813,7 +813,7 @@ static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) out_ipu6_rpm_put:pm_runtime_put_sync (&isp->psys->auxdev.dev); out_ipu6_bus_del_devices: - dir =IS_IPU7 (isp) ?DMA_BIDIRECTIONAL :DMA_TO_DEVICE ; + dir = (IS_IPU7 (isp) ||IS_IPU8 (isp)) ?DMA_BIDIRECTIONAL :DMA_TO_DEVICE ;if (!IS_ERR_OR_NULL (isp->psys)) {ipu6_cpd_free_pkg_dir (isp->psys);if (isp->psys->fw_sgt.nents)
@@ -847,7 +847,7 @@ static void ipu6_pci_remove(struct pci_dev *pdev)devm_free_irq (&pdev->dev, pdev->irq, isp); - dir =IS_IPU7 (isp) ?DMA_BIDIRECTIONAL :DMA_TO_DEVICE ; + dir = (IS_IPU7 (isp) ||IS_IPU8 (isp)) ?DMA_BIDIRECTIONAL :DMA_TO_DEVICE ;ipu6_cpd_free_pkg_dir (isp->psys);ipu6_unmap_fw_region (isp->psys, dir);
drivers/media/pci/intel/ipu6/ipu7-mmu-hw.c +143 -2
163 lines not on this page · raw message
drivers/media/pci/intel/ipu6/ipu7-mmu-hw.h +64 -0
70 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v2 6/7 media: ipu6: add IPU8 psys MMU table and PLL power sequencing
In reply to Divyamani TripathiPort the remaining IPU8 psys platform enablement that already exists upstream in staging ipu7: the psys MMU hardware table and PLL request/release in the shared power-on/off path. This driver has no psys pipeline consumer, so it only affects the psys bus device's power sequencing and MMU setup.
--- drivers/media/pci/intel/ipu6/ipu6-buttress.c | 17 +++ .../intel/ipu6/ipu6-platform-buttress-regs.h | 4 + drivers/media/pci/intel/ipu6/ipu7-mmu-hw.c | 131 +++++++++++++++++- drivers/media/pci/intel/ipu6/ipu7-mmu-hw.h | 51 +++++++ 4 files changed, 196 insertions(+), 7 deletions(-)
drivers/media/pci/intel/ipu6/ipu6-buttress.c +17 -0
@@ -512,6 +512,17 @@ static int __ipu7_power_on(struct device *dev,ipu7_nde_control (isp, true); } +/* IPU8 psys needs its PLL running above 400MHz. */ +if (!is_isys &&IS_IPU8 (isp) && ctrl->ratio >IPU8_PS_FREQ_CTL_DEFAULT_RATIO ) { +writel (1 , isp->base +IPU7_BUTTRESS_REG_PS_PLL_ENABLE ); + ret =readl_poll_timeout (isp->base +IPU7_BUTTRESS_REG_SLEEP_LEVEL_STS , + val, (val &IPU7_BUTTRESS_OWN_ACK_PS_CLK ), +100 ,BUTTRESS_POWER_TIMEOUT_US ); +if (ret) +dev_warn (&isp->pdev->dev, +"ps_pll req ack timeout: 0x%x\n" , val); + } +/* Request clock ownership. */ ovrd_clk = is_isys ?IPU7_BUTTRESS_OVERRIDE_IS_CLK :IPU7_BUTTRESS_OVERRIDE_PS_CLK ;
@@ -569,6 +580,12 @@ static int __ipu7_power_off(struct device *dev,ipu7_nde_control (isp, false); } +if (ctrl->subsys_id ==IPU_PSYS &&IS_IPU8 (isp)) { + val =readl (isp->base +IPU7_BUTTRESS_REG_SLEEP_LEVEL_STS ); +if (val &IPU7_BUTTRESS_OWN_ACK_PS_CLK ) +writel (0 , isp->base +IPU7_BUTTRESS_REG_PS_PLL_ENABLE ); + } +return 0 ; }
drivers/media/pci/intel/ipu6/ipu6-platform-buttress-regs.h +4 -0
@@ -282,6 +282,9 @@ enum {#define IPU7_BUTTRESS_IS_FREQ_CTL_RATIO_MASK GENMASK(7, 0)#define IPU7_IS_FREQ_CTL_DEFAULT_RATIO 0x1b#define IPU7_PS_FREQ_CTL_DEFAULT_RATIO 0x14 +/* IS: 400MHz, PS: 400MHz */ +#define IPU8_IS_FREQ_CTL_DEFAULT_RATIO 0x10 +#define IPU8_PS_FREQ_CTL_DEFAULT_RATIO 0x10/* D2D power control */ #define IPU7_BUTTRESS_REG_D2D_CTL 0x21d4
@@ -320,6 +323,7 @@ enum {#define IPU7_BUTTRESS_OWN_ACK_IS_CLK BIT(9)#define IPU7_BUTTRESS_OVERRIDE_PS_CLK BIT(2)#define IPU7_BUTTRESS_OWN_ACK_PS_CLK BIT(10) +#define IPU7_BUTTRESS_REG_PS_PLL_ENABLE 0x21bc/* PB registers */ #define IPU7_GLOBAL_INTERRUPT_MASK 0x8
drivers/media/pci/intel/ipu6/ipu7-mmu-hw.c +124 -7
145 lines not on this page · raw message
drivers/media/pci/intel/ipu6/ipu7-mmu-hw.h +51 -0
57 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v2 7/7 media: ipu6: add PCI ID for IPU8
In reply to Divyamani TripathiAdd the IPU8 PCI ID and probe wiring. IPU8 reuses the IPU7P5 buttress register map (unvalidated against IPU8's hardware spec) but needs its own default control ratio (0x10), so add dedicated ipu8_{isys,psys}_buttress_ctrl structs instead of reusing IPU7's.
--- drivers/media/pci/intel/ipu6/ipu6.c | 40 ++++++++++++++++++++++++++++- include/media/ipu6-pci-table.h | 2 ++ 2 files changed, 41 insertions(+), 1 deletion(-)
drivers/media/pci/intel/ipu6/ipu6.c +39 -1
@@ -140,6 +140,28 @@ static const struct ipu6_buttress_ctrl ipu7_psys_buttress_ctrl = { .pwr_sts_off = IPU6_BUTTRESS_PWR_STATE_DN_DONE, }; +static const struct ipu6_buttress_ctrl ipu8_isys_buttress_ctrl = { + .subsys_id =IPU_ISYS , + .ratio =IPU8_IS_FREQ_CTL_DEFAULT_RATIO , + .qos_floor =0 , + .freq_ctl =IPU7_BUTTRESS_REG_IS_WORKPOINT_REQ , + .pwr_sts_shift =IPU7_BUTTRESS_PWR_STATE_IS_PWR_SHIFT , + .pwr_sts_mask =IPU7_BUTTRESS_PWR_STATE_IS_PWR_MASK , + .pwr_sts_on =IPU6_BUTTRESS_PWR_STATE_UP_DONE , + .pwr_sts_off =IPU6_BUTTRESS_PWR_STATE_DN_DONE , +}; + +static const struct ipu6_buttress_ctrl ipu8_psys_buttress_ctrl = { + .subsys_id =IPU_PSYS , + .ratio =IPU8_PS_FREQ_CTL_DEFAULT_RATIO , + .qos_floor =0 , + .freq_ctl =IPU7_BUTTRESS_REG_PS_WORKPOINT_REQ , + .pwr_sts_shift =IPU7_BUTTRESS_PWR_STATE_PS_PWR_SHIFT , + .pwr_sts_mask =IPU7_BUTTRESS_PWR_STATE_PS_PWR_MASK , + .pwr_sts_on =IPU6_BUTTRESS_PWR_STATE_UP_DONE , + .pwr_sts_off =IPU6_BUTTRESS_PWR_STATE_DN_DONE , +}; +static const struct ipu6_buttress_registers ipu6_buttress_regs = {/* Registers */ .irq_status =BUTTRESS_REG_ISR_STATUS ,
@@ -624,7 +646,8 @@ static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)int ret;if ((id->device ==PCI_DEVICE_ID_INTEL_IPU7 || - id->device ==PCI_DEVICE_ID_INTEL_IPU7P5 ) && force_no_probe_ipu7) + id->device ==PCI_DEVICE_ID_INTEL_IPU7P5 || + id->device ==PCI_DEVICE_ID_INTEL_IPU8 ) && force_no_probe_ipu7)return -ENODEV ; isp =devm_kzalloc (dev,sizeof (*isp),GFP_KERNEL );
@@ -677,6 +700,21 @@ static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) isys_ctrl = &ipu7_isys_buttress_ctrl; psys_ctrl = &ipu7_psys_buttress_ctrl;break ; +case PCI_DEVICE_ID_INTEL_IPU8 : +/* +* IPU8 reuses the IPU7P5 buttress register map, +* matching staging ipu7 (no dedicated ipu8_buttress_regs +* there either). isys/psys control ratios use IPU8's own +* 0x10 default, unlike IPU7/IPU7P5. +* TODO: confirm buttress register map against IPU8 hw spec. +*/ + isp->hw_ver =IPU_VERSION_8 ; + isp->cpd_fw_name =IPU8_FIRMWARE_NAME ; + isp->model_name =IPU8_MEDIA_DEV_MODEL_NAME ; + isp->buttress.regs = &ipu7p5_buttress_regs; + isys_ctrl = &ipu8_isys_buttress_ctrl; + psys_ctrl = &ipu8_psys_buttress_ctrl; +break ;default : return dev_err_probe(dev, -ENODEV, "Unsupported IPU6 device %x\n",
include/media/ipu6-pci-table.h +2 -0
@@ -16,6 +16,7 @@#define PCI_DEVICE_ID_INTEL_IPU6EP_MTL 0x7d19#define PCI_DEVICE_ID_INTEL_IPU7 0x645d#define PCI_DEVICE_ID_INTEL_IPU7P5 0xb05d +#define PCI_DEVICE_ID_INTEL_IPU8 0xd719static const struct pci_device_id ipu6_pci_tbl[] = { {PCI_VDEVICE (INTEL ,PCI_DEVICE_ID_INTEL_IPU6 ) },
@@ -26,6 +27,7 @@ static const struct pci_device_id ipu6_pci_tbl[] = { { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IPU6EP_MTL) }, { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IPU7) }, { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IPU7P5) }, + { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IPU8) }, { } };
Signature · 1 line
2.43.0
Sakari Ailus
maintainerRe: [PATCH v2 7/7] media: ipu6: add PCI ID for IPU8
Hi Divyamani,
drivers/media/pci/intel/ipu6/ipu6.c static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) · line 650
Quoted 10 lines · Divyamani Tripathi
static const struct
ipu6_buttress_registersipu6_buttress_regs= {drivers/media/pci/intel/ipu6/ipu6.c +2
-1/* Registers */ .irq_status = BUTTRESS_REG_ISR_STATUS,@@ -624,7 +646,8 @@ static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)int ret;if ((id->device ==PCI_DEVICE_ID_INTEL_IPU7 || - id->device ==PCI_DEVICE_ID_INTEL_IPU7P5 ) && force_no_probe_ipu7) + id->device ==PCI_DEVICE_ID_INTEL_IPU7P5 || + id->device ==PCI_DEVICE_ID_INTEL_IPU8 ) && force_no_probe_ipu7)
One question about this -- is there a need to do this for IPU8? There's no IPU8 support in the ipu7 staging driver so I might leave this as-is.
Quoted 3 lines
drivers/media/pci/intel/ipu6/ipu6.c +0
-0return -ENODEV ; isp =devm_kzalloc (dev,sizeof (*isp),GFP_KERNEL );
Signature · 3 lines
Regards, Sakari Ailus
Re: [PATCH v2 7/7] media: ipu6: add PCI ID for IPU8
Hi Sakari,
Quoted 9 lines · Sakari Ailus
Hi Divyamani,
Quoted 6 lines · Divyamani Tripathi
static const struct
ipu6_buttress_registersipu6_buttress_regs= {drivers/media/pci/intel/ipu6/ipu6.c +0
-0/* Registers */ .irq_status = BUTTRESS_REG_ISR_STATUS,@@ -624,7 +646,8 @@ static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)int ret;
Quoted 7 lines
drivers/media/pci/intel/ipu6/ipu6.c static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) · line 650
Quoted 4 lines
drivers/media/pci/intel/ipu6/ipu6.c +2
-1if ((id->device ==PCI_DEVICE_ID_INTEL_IPU7 || - id->device ==PCI_DEVICE_ID_INTEL_IPU7P5 ) && force_no_probe_ipu7) + id->device ==PCI_DEVICE_ID_INTEL_IPU7P5 || + id->device ==PCI_DEVICE_ID_INTEL_IPU8 ) && force_no_probe_ipu7)One question about this -- is there a need to do this for IPU8? There's no IPU8 support in the ipu7 staging driver so I might leave this as-is.
If I go through the (rest of) the patches from Divyamani, I do see some IPU8 functionality being added. I was wondering if we still needed to do away with this portion of code.
Quoted 10 lines
Quoted 4 lines
drivers/media/pci/intel/ipu6/ipu6.c +0
-0return -ENODEV ; isp =devm_kzalloc (dev,sizeof (*isp),GFP_KERNEL );Signature · 3 lines
Regards, Sakari Ailus
-With regards,
Manik
Sakari Ailus
maintainerRe: [PATCH v2 7/7] media: ipu6: add PCI ID for IPU8
Hi Manik,
Quoted 22 lines · Manik Bajpai
Hi Sakari,
Quoted 9 lines · Sakari Ailus
Hi Divyamani,
Quoted 6 lines · Divyamani Tripathi
static const struct
ipu6_buttress_registersipu6_buttress_regs= {drivers/media/pci/intel/ipu6/ipu6.c +0
-0/* Registers */ .irq_status = BUTTRESS_REG_ISR_STATUS,@@ -624,7 +646,8 @@ static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)int ret;Quoted 7 lines
drivers/media/pci/intel/ipu6/ipu6.c static int ipu6_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) · line 650
Quoted 4 lines
drivers/media/pci/intel/ipu6/ipu6.c +2
-1if ((id->device ==PCI_DEVICE_ID_INTEL_IPU7 || - id->device ==PCI_DEVICE_ID_INTEL_IPU7P5 ) && force_no_probe_ipu7) + id->device ==PCI_DEVICE_ID_INTEL_IPU7P5 || + id->device ==PCI_DEVICE_ID_INTEL_IPU8 ) && force_no_probe_ipu7)One question about this -- is there a need to do this for IPU8? There's no IPU8 support in the ipu7 staging driver so I might leave this as-is.
Quoted 3 lines
If I go through the (rest of) the patches from Divyamani, I do see some IPU8 functionality being added. I was wondering if we still needed to do away with this portion of code.
Yes, I'll drop this when merging the patch.
I didn't notice the pattern regarding the 4th patch so I'll leave that for a later cleanup.
Signature · 3 lines
Regards, Sakari Ailus