OSDN Git Service

media: atomisp: Log an error on failing to alloc private-mem
authorHans de Goede <hdegoede@redhat.com>
Sun, 23 Oct 2022 20:16:09 +0000 (21:16 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:19:03 +0000 (08:19 +0000)
commitac8dd062aa6cb095096e02240f497786891317b0
tree2ac4fe018e6576449b7d7dc44f7fa7b7f601b5cb
parent36c953e1efa8249fb2d85a1f396d885a9463e9a8
media: atomisp: Log an error on failing to alloc private-mem

I managed to trigger an atomisp_css_start() error by pushing my test
system towards an OOM situation, this resulted in the following errors:

atomisp-isp2 0000:00:03.0: alloc pages err...
atomisp-isp2 0000:00:03.0: hmm_bo_alloc_pages failed.
atomisp-isp2 0000:00:03.0: stream[0] start error.

But it is not entirely clear what the root cause of
the "alloc pages err..." error is. I suspect the root cause is
alloc_pages_bulk_array() failing. Add a log message to make
the root cause more clear if this is hit again.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c