Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp569088imm; Fri, 31 Aug 2018 07:42:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYBw/Bb33su6GS/czWWbC/3ofTlT6igGT/YNTcf1kAk1yuMwomY2TLZv8R61dNK1Hom9H+c X-Received: by 2002:a62:12c7:: with SMTP id 68-v6mr16200621pfs.216.1535726550144; Fri, 31 Aug 2018 07:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535726550; cv=none; d=google.com; s=arc-20160816; b=EEBCA3//xbigKPfOQ4R3ib3qoQJvrDCrz8LPYq3KBdsRHzfi709aQY+p+R56mZ0TYp nMbnj790ZsMX8FgEnBddKBWFZCvbSjCsfv+L46ltJbwOxbxUUJnHvSFHcpINhY3+tEbw fuC2f8p6Mct5rwTsuGW0RRI02B1vivnIKS+oAcO+4uZCDYPwGhAaDVSOChvTVpwONFFL 0IgUFXgZPQMpkVqsAnBRf1+EVrytQzd2LM3J7RkWDZ9brX6co1rG8ML/fisWIYPG53I/ BKZ6rVeAJgyJrMqxnZQL9bhtyv/nULvY2194t/DwY6cSTvBX0pNKJD+7fURWGX9Q5dBO pO7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=SuSUgSb3qkBmIz/ZMEaWvCSr5yFq3lNOtVjjbhAWIJI=; b=EV/MkSUz5HZGdIy6tAFOPKrR8GZ5WNUJWwvZFb7HtRz5vYgAy1yK0+j51Xnua5hk9i NKNtI4r2CcOamI0St32v5A9EcsxBPghiJWVIqCwHmQrEwXJVpA5KdPwQh5JhNPugtMFY CVqyyxf1ztoHGE+7Y3WrGVMrmhGcHKsJyjaQNXmCNrvLmNNIEvq4QbuDe9xtSj5fnUsU +qELStTtZ7JhLqd68XOhGzBEDeUcv9DA0uRaWyavz1ChjlRhKvgWvA1s4U0ThGLr6nXQ aVHuJ13ywc26oW3aYekYhyje2b899tU7lMcud1vZBlx9jDXvOS/bJ1j9AhQMoSGEgdaD raQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=IUVd+Agp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i90-v6si10395996pli.274.2018.08.31.07.42.15; Fri, 31 Aug 2018 07:42:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=IUVd+Agp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728834AbeHaSsm (ORCPT + 99 others); Fri, 31 Aug 2018 14:48:42 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:44524 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728760AbeHaSsl (ORCPT ); Fri, 31 Aug 2018 14:48:41 -0400 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B48841AA2; Fri, 31 Aug 2018 16:40:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1535726451; bh=2bSgBlD5BczKXo2QNEk9M3an9MenpcPj9DQhEYcxIfE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IUVd+AgpRGZWPPaqcOOeaKkM1eMGMFlWRP74LguOV8wNm3sm2UJkrUbBRz6B15WsR JJ3oPVglObKQTIjOevfW3hi1m/HQN7pMR7JkBMWJ6WKuaCDr+LYZUp3di/2FQKbHO8 /BXkMs2LK6+nK0iLzRGqs873gkHoD9A5n8PQF6xQ= From: Kieran Bingham To: Laurent Pinchart , mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham Subject: [PATCH 4/6] media: vsp1: Document max_width restriction on SRU Date: Fri, 31 Aug 2018 15:40:42 +0100 Message-Id: <20180831144044.31713-5-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180831144044.31713-1-kieran.bingham+renesas@ideasonboard.com> References: <20180831144044.31713-1-kieran.bingham+renesas@ideasonboard.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SRU is currently restricted to 256 pixels as part of the current partition algorithm. Document that the actual capability of this component is 288 pixels, but don't increase the implementation. The extended partition algorithm may later choose to utilise a larger input to support overlapping partitions. Signed-off-by: Kieran Bingham --- drivers/media/platform/vsp1/vsp1_sru.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/vsp1/vsp1_sru.c b/drivers/media/platform/vsp1/vsp1_sru.c index f277700e5cc2..2a40e09b9aa7 100644 --- a/drivers/media/platform/vsp1/vsp1_sru.c +++ b/drivers/media/platform/vsp1/vsp1_sru.c @@ -314,6 +314,10 @@ static unsigned int sru_max_width(struct vsp1_entity *entity, output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, SRU_PAD_SOURCE); + /* + * The maximum width of the SRU is 288 input pixels, but to support the + * partition algorithm, this is currently kept at 256. + */ if (input->width != output->width) return 512; else -- 2.17.1