media: atomisp: Big power-management changes + lots of fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest57 patches 109 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/57 | media: atomisp: fix videobuf2 Kconfig depenendencydrivers/ | +1 | 1 reply | |
| 2/57 | media: atomisp: use vb2_start_streaming_called()drivers/ | +4 | 0 replies | |
| 3/57 | media: atomisp: Remove atomisp_sw_contex structdrivers/ drivers/ drivers/ | +4 | 1 reply | |
| 4/57 | media: atomisp: Move power-management over to a custom pm-domaindrivers/ drivers/ | +33 | 0 replies | |
| 5/57 | media: atomisp: Silence "isys dma store at addr, val" debug messagesdrivers/ | +0 | 1 reply | |
| 6/57 | media: atomisp: Remove non working doorbell check from punit_ddr_dvfs_enable()drivers/ | +4 | 0 replies | |
| 7/57 | media: atomisp: Remove useless msleep(10) before power-on on BYTdrivers/ | +0 | 1 reply | |
| 8/57 | media: atomisp: Remove custom ATOMISP_IOC_ISP_MAKERNOTE ioctldrivers/ drivers/ drivers/ +12 more | +0 | 1 reply | |
| 9/57 | media: atomisp: Remove custom ATOMISP_IOC_G_SENSOR_MODE_DATA ioctldrivers/ drivers/ drivers/ +13 more | +0 | 1 reply | |
| 10/57 | media: atomisp: Remove V4L2_CID_BIN_FACTOR_HORZ/_VERTdrivers/ drivers/ drivers/ +4 more | +1 | 1 reply | |
| 11/57 | media: atomisp: Remove no longer used binning info from sensor resolution infodrivers/ drivers/ drivers/ +3 more | +0 | 1 reply | |
| 12/57 | media: atomisp: Propagate set_fmt() errors in queue_setup()drivers/ | +1 | 1 reply | |
| 13/57 | media: atomisp: Remove deferred firmware loading supportdrivers/ drivers/ drivers/ | +14 | 1 reply | |
| 14/57 | media: atomisp: Check buffer index is in range inside atomisp_qbuf_wrapper()drivers/ | +3 | 2 replies | |
| 15/57 | media: atomisp: Drop atomisp_init_pipe()drivers/ drivers/ drivers/ | +41 | 1 reply | |
| 16/57 | media: atomisp: Remove unnecessary memset(foo, 0, sizeof(foo)) callsdrivers/ | +0 | 1 reply | |
| 17/57 | media: atomisp: Only set default_run_mode on first open of a stream/asddrivers/ | +2 | 1 reply | |
| 18/57 | media: atomisp: Do not turn off sensor when the atomisp-sub-dev does not own itdrivers/ | +10 | 0 replies | |
| 19/57 | media: atomisp: Allow sensor drivers without a s_power callbackdrivers/ drivers/ | +3 | 1 reply | |
| 20/57 | media: atomisp: Fix regulator registers on BYT devices with CRC PMICdrivers/ | +18 | 1 reply | |
| 21/57 | media: atomisp: Remove atomisp_gmin_find_subdev()drivers/ drivers/ drivers/ +1 more | +7 | 1 reply | |
| 22/57 | media: atomisp: Add atomisp_register_sensor_no_gmin() helperdrivers/ drivers/ | +65 | 1 reply | |
| 23/57 | media: atomisp: Fix WARN() when the vb2 start_streaming callback failsdrivers/ drivers/ drivers/ | +13 | 1 reply | |
| 24/57 | media: atomisp: Drop ffmt local var from atomisp_set_fmt()drivers/ | +5 | 0 replies | |
| 25/57 | media: atomisp: Stop overriding padding w/h to 12 on BYTdrivers/ | +0 | 1 reply | |
| 26/57 | media: atomisp: Put sensor ACPI devices in D3 before disable ACPI power-resourcesdrivers/ | +8 | 0 replies | |
| 27/57 | media: atomisp: Remove isp_subdev_link_setup()drivers/ drivers/ | +0 | 1 reply | |
| 28/57 | media: Add ovxxxx_16bit_addr_reg_helpers.hinclude/ | +93 | 48 replies | |
| 29/57 | media: atomisp: ov2680: Use the new ovxxxx_16bit_addr_reg_helpers.hdrivers/ drivers/ | +25 | 2 replies | |
| 30/57 | media: atomisp: ov2680: Rework flip ctrlsdrivers/ drivers/ | +155 | 1 reply | |
| 31/57 | media: atomisp: ov2680: Drop custom ATOMISP_IOC_S_EXPOSURE supportdrivers/ drivers/ | +2 | 1 reply | |
| 32/57 | media: atomisp: ov2680: Add exposure and gain controlsdrivers/ drivers/ | +26 | 1 reply | |
| 33/57 | media: atomisp: ov2680: Add test pattern controldrivers/ drivers/ | +36 | 3 replies | |
| 34/57 | media: atomisp: ov2680: Fix window settings and enable window for all resolutionsdrivers/ | +38 | 1 reply | |
| 35/57 | media: atomisp: ov2680: Make setting the modes algorithm baseddrivers/ drivers/ | +164 | 1 reply | |
| 36/57 | media: atomisp: ov2680: Use defines for fps, lines-per-frame and skip-framesdrivers/ drivers/ | +6 | 1 reply | |
| 37/57 | media: atomisp: ov2680: Drop unused res member from struct ov2680_devicedrivers/ drivers/ | +0 | 1 reply | |
| 38/57 | media: atomisp: ov2680: Fix ov2680_enum_frame_interval()drivers/ | +4 | 1 reply | |
| 39/57 | media: atomisp: ov2680: Drop v4l2_find_nearest_size() call from set_fmt()drivers/ | +4 | 1 reply | |
| 40/57 | media: atomisp: ov2680: Drop struct ov2680_resolution / ov2680_res_previewdrivers/ drivers/ | +19 | 1 reply | |
| 41/57 | media: atomisp: ov2680: Fix frame_size listdrivers/ | +2 | 2 replies | |
| 42/57 | media: atomisp: ov2680: Remove unused data-types and defines from ov2680.hdrivers/ | +0 | 1 reply | |
| 43/57 | media: atomisp: ov2680: Drop MAX_FMTS definedrivers/ drivers/ | +1 | 1 reply | |
| 44/57 | media: atomisp: ov2680: Consistently indent define valuesdrivers/ | +18 | 1 reply | |
| 45/57 | media: atomisp: ov2680: Cleanup includesdrivers/ | +3 | 1 reply | |
| 46/57 | media: atomisp: ov2680: Delay power-on till streaming is starteddrivers/ | +41 | 4 replies | |
| 47/57 | media: atomisp: ov2680: Add runtime-pm supportdrivers/ drivers/ | +36 | 1 reply | |
| 48/57 | media: atomisp: ov2680: s/dev/sensor/drivers/ | +37 | 1 reply | |
| 49/57 | media: atomisp: ov2680: Use devm_kzalloc() for sensor data structdrivers/ | +4 | 1 reply | |
| 50/57 | media: atomisp: ov2680: Switch over to ACPI powermanagementdrivers/ drivers/ | +53 | 1 reply | |
| 51/57 | media: atomisp: ov2722: Call atomisp_gmin_remove_subdev() on probe failuredrivers/ | +1 | 1 reply | |
| 52/57 | media: atomisp: ov2722: Fix GPIO1 polaritydrivers/ | +1 | 2 replies | |
| 53/57 | media: atomisp: ov2722: Don't take the input_lock for try_fmt calls.drivers/ | +1 | 1 reply | |
| 54/57 | media: atomisp: ov2722: Power on sensor from set_fmt() callbackdrivers/ drivers/ | +13 | 2 replies | |
| 55/57 | media: atomisp: pci: Replace bytes macros with functionsdrivers/ | +23 | 0 replies | |
| 56/57 | media: atomisp: pci: hive_isp_css_common: host: vmem: Replace SUBWORD macros with functionsdrivers/ | +14 | 2 replies | |
| 57/57 | media: atomisp: pci: sh_css: Inline single invocation of macro STATS_ENABLED()drivers/ | +3 | 0 replies |
Reviews trailers per patch
45 of 57 patches have a Reviewed-by or Acked-by.
| Patch | Hans de Goede | Andy Shevchenko | Dan Carpenter |
|---|---|---|---|
| 1/57 | R-b | T-b | |
| 2/57 | |||
| 3/57 | R-b | ||
| 4/57 | |||
| 5/57 | R-b | ||
| 6/57 | |||
| 7/57 | R-b | ||
| 8/57 | R-b | ||
| 9/57 | R-b | ||
| 10/57 | R-b | ||
| 11/57 | R-b | ||
| 12/57 | R-b | ||
| 13/57 | R-b | ||
| 14/57 | |||
| 15/57 | R-b | ||
| 16/57 | R-b | ||
| 17/57 | R-b | ||
| 18/57 | |||
| 19/57 | R-b | ||
| 20/57 | R-b | ||
| 21/57 | R-b | ||
| 22/57 | R-b | ||
| 23/57 | R-b | ||
| 24/57 | |||
| 25/57 | R-b | ||
| 26/57 | |||
| 27/57 | R-b | ||
| 28/57 | |||
| 29/57 | |||
| 30/57 | |||
| 31/57 | R-b | ||
| 32/57 | R-b | ||
| 33/57 | R-b | ||
| 34/57 | |||
| 35/57 | |||
| 36/57 | R-b | ||
| 37/57 | R-b | ||
| 38/57 | R-b | ||
| 39/57 | R-b | ||
| 40/57 | R-b | ||
| 41/57 | R-b | ||
| 42/57 | R-b | ||
| 43/57 | R-b | ||
| 44/57 | R-b | ||
| 45/57 | R-b | ||
| 46/57 | R-b | ||
| 47/57 | R-b | ||
| 48/57 | R-b | ||
| 49/57 | R-b | ||
| 50/57 | R-b | ||
| 51/57 | R-b | ||
| 52/57 | R-b | ||
| 53/57 | R-b | ||
| 54/57 | R-b | ||
| 55/57 | R-b | R-b | |
| 56/57 | R-b | ||
| 57/57 | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 00/57] media: atomisp: Big power-management changes + lots of fixes
Hi All,
Here is another set of patches resulting from my continued work on cleaning up / improving the atomisp driver.
The main changes here are power-management related, divided into 2 sets:
1. Move the pm of the core atomisp device to its own custom PM domain. We turn the ISP on/off through the P-Unit and when off the PCI subsystem resume method complains about the PCI config space not being reachable. Changing to a custom PM domain fixes the logs getting filled with PCI subsys errors on every open of a /dev/video# node
2. Except for devices shipped with Android as factory image, all the DSDTs I have seen have proper ACPI pm code for the sensors. So we really should be using ACPI pm for this.
This series contains a lot of ov2680 patches, including reworking the controls (so that control changes can be delayed to stream on time instead of directly trying to do i2c writes to the turned off sensor). Basically modernizing the ov2680 driver a lot (there are still some atomisp-isms left).
And then finally after all the ov2680 cleanups it moves the ov2680 code over to using runtime-pm + ACPI pm, dropping all the direct PMIC + clk poking done by the atomisp_gmin_platform code.
Besides that this also contains quite a few other fixes / cleanups for things which I encountered during the way and it contains the start of making the ov2722 driver work. With the changes present in that driver I get a working (but very dark) stream. I expect that once I add a proper exposure control this will start working better.
Regards,
Hans
Arnd Bergmann (1):
media: atomisp: fix videobuf2 Kconfig depenendency
Brent Pappas (3):
media: atomisp: pci: Replace bytes macros with functions
media: atomisp: pci: hive_isp_css_common: host: vmem: Replace SUBWORD
macros with functions
media: atomisp: pci: sh_css: Inline single invocation of macro
STATS_ENABLED()
Hans Verkuil (1):
media: atomisp: use vb2_start_streaming_called()
Hans de Goede (52):
media: atomisp: Remove atomisp_sw_contex struct
media: atomisp: Move power-management over to a custom pm-domain
media: atomisp: Silence "isys dma store at addr, val" debug messages
media: atomisp: Remove non working doorbell check from
punit_ddr_dvfs_enable()
media: atomisp: Remove useless msleep(10) before power-on on BYT
media: atomisp: Remove custom ATOMISP_IOC_ISP_MAKERNOTE ioctl
media: atomisp: Remove custom ATOMISP_IOC_G_SENSOR_MODE_DATA ioctl
media: atomisp: Remove V4L2_CID_BIN_FACTOR_HORZ/_VERT
media: atomisp: Remove no longer used binning info from sensor
resolution info
media: atomisp: Propagate set_fmt() errors in queue_setup()
media: atomisp: Remove deferred firmware loading support
media: atomisp: Check buffer index is in range inside
atomisp_qbuf_wrapper()
media: atomisp: Drop atomisp_init_pipe()
media: atomisp: Remove unnecessary memset(foo, 0, sizeof(foo)) calls
media: atomisp: Only set default_run_mode on first open of a
stream/asd
media: atomisp: Do not turn off sensor when the atomisp-sub-dev does
not own it
media: atomisp: Allow sensor drivers without a s_power callback
media: atomisp: Fix regulator registers on BYT devices with CRC PMIC
media: atomisp: Remove atomisp_gmin_find_subdev()
media: atomisp: Add atomisp_register_sensor_no_gmin() helper
media: atomisp: Fix WARN() when the vb2 start_streaming callback fails
media: atomisp: Drop ffmt local var from atomisp_set_fmt()
media: atomisp: Stop overriding padding w/h to 12 on BYT
media: atomisp: Put sensor ACPI devices in D3 before disable ACPI
power-resources
media: atomisp: Remove isp_subdev_link_setup()
media: Add ovxxxx_16bit_addr_reg_helpers.h
media: atomisp: ov2680: Use the new ovxxxx_16bit_addr_reg_helpers.h
media: atomisp: ov2680: Rework flip ctrls
media: atomisp: ov2680: Drop custom ATOMISP_IOC_S_EXPOSURE support
media: atomisp: ov2680: Add exposure and gain controls
media: atomisp: ov2680: Add test pattern control
media: atomisp: ov2680: Fix window settings and enable window for all
resolutions
media: atomisp: ov2680: Make setting the modes algorithm based
media: atomisp: ov2680: Use defines for fps, lines-per-frame and
skip-frames
media: atomisp: ov2680: Drop unused res member from struct
ov2680_device
media: atomisp: ov2680: Fix ov2680_enum_frame_interval()
media: atomisp: ov2680: Drop v4l2_find_nearest_size() call from
set_fmt()
media: atomisp: ov2680: Drop struct ov2680_resolution /
ov2680_res_preview
media: atomisp: ov2680: Fix frame_size list
media: atomisp: ov2680: Remove unused data-types and defines from
ov2680.h media: atomisp: ov2680: Drop MAX_FMTS define
media: atomisp: ov2680: Consistently indent define values
media: atomisp: ov2680: Cleanup includes
media: atomisp: ov2680: Delay power-on till streaming is started
media: atomisp: ov2680: Add runtime-pm support
media: atomisp: ov2680: s/dev/sensor/
media: atomisp: ov2680: Use devm_kzalloc() for sensor data struct
media: atomisp: ov2680: Switch over to ACPI powermanagement
media: atomisp: ov2722: Call atomisp_gmin_remove_subdev() on probe
failure
media: atomisp: ov2722: Fix GPIO1 polarity
media: atomisp: ov2722: Don't take the input_lock for try_fmt calls.
media: atomisp: ov2722: Power on sensor from set_fmt() callback
drivers/staging/media/atomisp/Kconfig | 2 +- .../media/atomisp/i2c/atomisp-gc0310.c | 249 ---- .../media/atomisp/i2c/atomisp-gc2235.c | 176 --- .../media/atomisp/i2c/atomisp-mt9m114.c | 206 --- .../media/atomisp/i2c/atomisp-ov2680.c | 1273 +++++------------ .../media/atomisp/i2c/atomisp-ov2722.c | 195 +-- drivers/staging/media/atomisp/i2c/gc0310.h | 10 - drivers/staging/media/atomisp/i2c/gc2235.h | 31 - drivers/staging/media/atomisp/i2c/mt9m114.h | 15 - drivers/staging/media/atomisp/i2c/ov2680.h | 842 ++--------- drivers/staging/media/atomisp/i2c/ov2722.h | 36 +- .../media/atomisp/i2c/ov5693/atomisp-ov5693.c | 195 --- .../staging/media/atomisp/i2c/ov5693/ov5693.h | 61 - .../media/atomisp/include/linux/atomisp.h | 50 - .../include/linux/atomisp_gmin_platform.h | 2 - .../atomisp/include/linux/atomisp_platform.h | 11 +- drivers/staging/media/atomisp/notes.txt | 6 - .../staging/media/atomisp/pci/atomisp_cmd.c | 90 +- .../staging/media/atomisp/pci/atomisp_cmd.h | 9 +- .../staging/media/atomisp/pci/atomisp_fops.c | 89 +- .../staging/media/atomisp/pci/atomisp_fops.h | 3 +- .../media/atomisp/pci/atomisp_gmin_platform.c | 118 +- .../media/atomisp/pci/atomisp_internal.h | 7 +- .../staging/media/atomisp/pci/atomisp_ioctl.c | 50 +- .../media/atomisp/pci/atomisp_subdev.c | 169 +-- .../media/atomisp/pci/atomisp_subdev.h | 13 - .../staging/media/atomisp/pci/atomisp_v4l2.c | 165 +-- .../css_2401_system/host/isys_dma_private.h | 2 - .../pci/hive_isp_css_common/host/vmem.c | 20 +- drivers/staging/media/atomisp/pci/sh_css.c | 7 +- .../staging/media/atomisp/pci/sh_css_params.c | 38 +- include/media/ovxxxx_16bit_addr_reg_helpers.h | 93 ++ 32 files changed, 862 insertions(+), 3371 deletions(-) create mode 100644 include/media/ovxxxx_16bit_addr_reg_helpers.h
Signature · 1 line
2.39.0