linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/8] ipu3-cio2 format and other fixes
@ 2020-10-12 18:04 Sakari Ailus
  2020-10-12 18:04 ` [PATCH v3 1/8] ipu3-cio2: Return actual subdev format Sakari Ailus
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Sakari Ailus @ 2020-10-12 18:04 UTC (permalink / raw)
  To: linux-media
  Cc: Tsuchiya Yuto, bingbu.cao, Yong Zhi, Tianshu Qiu,
	laurent.pinchart

Hello all,

This set addresses most notable subdev format related issues, namely the
sub-device sink format being unaccessible. The result of accessing it
varied from oopses to crashes.

since v2:

- Cc the fixes to the stable tree, cleanups to master only

- Add the size checks first, then make size (as well as a bunch of other
  constants) unsigned. Then remove the explicit type from size checks.

- Add a patch to rename the length macro as height (which it really
  is about)

- Add a patch to remove driver queue references to buffers returned to
  vb2 (cc that to stable, too).

since v1:

- Validate try format, too

- Set field in subdev format to V4L2_FIELD_NONE

- Add a comment explaining the lock

- Make values that should be unsigned, unsigned

Sakari Ailus (8):
  ipu3-cio2: Return actual subdev format
  ipu3-cio2: Serialise access to pad format
  ipu3-cio2: Validate mbus format in setting subdev format
  ipu3-cio2: Make the field on subdev format V4L2_FIELD_NONE
  ipu3-cio2: Use unsigned values where appropriate
  ipu3-cio2: Remove explicit type from frame size checks
  ipu3-cio2: Rename CIO2_IMAGE_MAX_LENGTH as CIO2_IMAGE_MAX_HEIGHT
  ipu3-cio2: Remove traces of returned buffers

 drivers/media/pci/intel/ipu3/ipu3-cio2.c |  65 +++++-----
 drivers/media/pci/intel/ipu3/ipu3-cio2.h | 157 ++++++++++++-----------
 2 files changed, 114 insertions(+), 108 deletions(-)

-- 
2.27.0

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

end of thread, other threads:[~2020-10-13  7:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-12 18:04 [PATCH v3 0/8] ipu3-cio2 format and other fixes Sakari Ailus
2020-10-12 18:04 ` [PATCH v3 1/8] ipu3-cio2: Return actual subdev format Sakari Ailus
2020-10-12 18:04 ` [PATCH v3 2/8] ipu3-cio2: Serialise access to pad format Sakari Ailus
2020-10-12 18:04 ` [PATCH v3 3/8] ipu3-cio2: Validate mbus format in setting subdev format Sakari Ailus
2020-10-12 18:04 ` [PATCH v3 4/8] ipu3-cio2: Make the field on subdev format V4L2_FIELD_NONE Sakari Ailus
2020-10-12 18:04 ` [PATCH v3 5/8] ipu3-cio2: Use unsigned values where appropriate Sakari Ailus
2020-10-12 18:04 ` [PATCH v3 6/8] ipu3-cio2: Remove explicit type from frame size checks Sakari Ailus
2020-10-12 18:30   ` Andy Shevchenko
2020-10-12 18:35   ` Laurent Pinchart
2020-10-12 18:04 ` [PATCH v3 7/8] ipu3-cio2: Rename CIO2_IMAGE_MAX_LENGTH as CIO2_IMAGE_MAX_HEIGHT Sakari Ailus
2020-10-12 18:31   ` Andy Shevchenko
2020-10-12 18:32   ` Laurent Pinchart
2020-10-12 18:04 ` [PATCH v3 8/8] ipu3-cio2: Remove traces of returned buffers Sakari Ailus
2020-10-12 18:32   ` Andy Shevchenko
2020-10-13  7:22     ` Sakari Ailus
2020-10-12 18:35   ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).