[PATCH v2 06/12] media: rkvdec: Add RCB and SRAM support

Krzysztof Kozlowski krzk at kernel.org
Sun Aug 10 23:13:42 PDT 2025


On 08/08/2025 22:03, Detlev Casanova wrote:
>  
> -	vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32));
> -
>  	irq = platform_get_irq(pdev, 0);
>  	if (irq <= 0)
>  		return -ENXIO;
> @@ -1204,6 +1217,10 @@ static int rkvdec_probe(struct platform_device *pdev)
>  		return ret;
>  	}
>  
> +	rkvdec->sram_pool = of_gen_pool_get(pdev->dev.of_node, "sram", 0);

Didn't you just add new ABI?

> +	if (!rkvdec->sram_pool && rkvdec->config->rcb_num > 0)
> +		dev_info(&pdev->dev, "No sram node, RCB will be stored in RAM\n");
> +



Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list