From patchwork Mon Jan 15 16:38:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10164769 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A3B2B60325 for ; Mon, 15 Jan 2018 16:39:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 947B4200DF for ; Mon, 15 Jan 2018 16:39:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 89A502013C; Mon, 15 Jan 2018 16:39:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI,URIBL_GREY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BAF1200DF for ; Mon, 15 Jan 2018 16:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966895AbeAOQi5 (ORCPT ); Mon, 15 Jan 2018 11:38:57 -0500 Received: from o1678950229.outbound-mail.sendgrid.net ([167.89.50.229]:47808 "EHLO o1678950229.outbound-mail.sendgrid.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966868AbeAOQio (ORCPT ); Mon, 15 Jan 2018 11:38:44 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:cc:subject:in-reply-to:references:in-reply-to:references; s=smtpapi; bh=gewAeFgE2vWsWj9d1hZJGegnVNE=; b=MIVcDkCUAbd6Nese3x M/eLkgt/Pc0VzwYM2sRtFaZHOvipfoJodNvTy6H9P3cxkatoE7ve4EnWBXNEdXHf +XTMtk2AMeJO918Fd2qIK+Zl0S+/NyNaXTKV0RbhFz+ZKDfaojqjA7ATugqskuYl EpetDDyhJcwqkKsVoGMjVyxVs= Received: by filter0013p3iad2.sendgrid.net with SMTP id filter0013p3iad2-16391-5A5CD913-E 2018-01-15 16:38:43.265950251 +0000 UTC Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by ismtpd0003p1lon1.sendgrid.net (SG) with ESMTP id s2OBkftoQXG88RVzTmCtWg Mon, 15 Jan 2018 16:38:43.014 +0000 (UTC) From: Kieran Bingham To: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: Laurent Pinchart , Kieran Bingham , Kieran Bingham Subject: [PATCH v5 9/9] v4l: vsp1: Reduce display list body size Date: Mon, 15 Jan 2018 16:38:43 +0000 (UTC) Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-SG-EID: Tfq0zQjjJFmIKL8hyrOr6KT7wyjsEm7XZZskPfLyBPJlwqeeA6PPwc/aRr0X+Gkk2dSZxEmnv1uvNz tgPqvC1YD92aBkf4ujGp0Ve8la6HyEuJ3lYzYxZl/QdNrBGk1tW2rwsnqvQtJhHdmBLINHzobJao7T d2AFoflB0OxoMrxwIWq9NmDeRyhhfB0ViRU0Sa6GyRN6P59YZEQl0YWp7bc1oIJXk2Ejto04a/bson Kezl6JBXis1WFH1Ywohtnp Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The display list originally allocated a body of 256 entries to store all of the register lists required for each frame. This has now been separated into fragments for constant stream setup, and runtime updates. Empirical testing shows that the body0 now uses a maximum of 41 registers for each frame, for both DRM and Video API pipelines thus a rounded 64 entries provides a suitable allocation. Signed-off-by: Kieran Bingham --- drivers/media/platform/vsp1/vsp1_dl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vsp1/vsp1_dl.c b/drivers/media/platform/vsp1/vsp1_dl.c index 1fc52496fc13..ce315821b60c 100644 --- a/drivers/media/platform/vsp1/vsp1_dl.c +++ b/drivers/media/platform/vsp1/vsp1_dl.c @@ -21,7 +21,7 @@ #include "vsp1.h" #include "vsp1_dl.h" -#define VSP1_DL_NUM_ENTRIES 256 +#define VSP1_DL_NUM_ENTRIES 64 #define VSP1_DLH_INT_ENABLE (1 << 1) #define VSP1_DLH_AUTO_START (1 << 0)