1. 08 May, 2019 1 commit
    • Eugen Hristev's avatar
      media: atmel: atmel-isc: limit incoming pixels per frame · 253ccf34
      Eugen Hristev authored
      This will limit the incoming pixels per frame from the sensor.
      Currently, the ISC will stop sampling the frame only when the vsync/hsync
      are detected.
      If we misconfigure the resolution in the sensor w.r.t. resolution in the ISC,
      the buffer used for DMA in the ISC will be smaller than the number of pixels
      that the ISC DMA engine will copy.
      In this case it happens that the DMA will overwrite parts of the memory which
      should not be written, leading to memory corruption.
      To avoid this situation, use the PFE CFG1 and PFE CFG2 registers, which crop
      the incoming frame to the resolution that we configure.
      This way the DMA engine will never write more data than we expect it to.
      Signed-off-by: default avatarEugen Hristev <eugen.hristev@microchip.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      253ccf34
  2. 30 Apr, 2019 4 commits
  3. 25 Apr, 2019 6 commits
  4. 22 Apr, 2019 29 commits