From patchwork Wed Jul 19 09:55:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9851071 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 9568960392 for ; Wed, 19 Jul 2017 09:58:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AD2525F3E for ; Wed, 19 Jul 2017 09:58:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F62128634; Wed, 19 Jul 2017 09:58:21 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 04DDF28632 for ; Wed, 19 Jul 2017 09:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=FFGiZOuoCeSvQqGdp5BAUpeBrzziNKemccU5CtVyTqw=; b=Rebxnftz22uNyPxJN5hGaVRORC YkcpCsCCFYmjrv22ZMPbXOiycngFqcm6IYG0h02AB0Zl/pTtxvwqDQvccp4I8g0XMG7rt3NyEhhOd uvI5IAhBou41w/PPXq2oBlSQOWYyCQE/2blqzOoyWTVwqxpBIPu8qAaI/oTxcBYLY4VwOuyaqMqAh cPi0pitEEcII0mCLQj9SwXgM5+NKkuOlZKylTZ3Y0m9qzMpWGDio1cq2mYAfhh9hTNEbXRKbW757y PtZJcnoxzrFJdNr337mT/vnvseQmgDOlpQSFkMnc0mZTQqnIHRRrRcdiK9CD/MfQJCGDxhEx9KR4z vNB/zpRA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dXlkH-0006SC-GF; Wed, 19 Jul 2017 09:58:17 +0000 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXljD-0005Ai-06 for linux-arm-kernel@lists.infradead.org; Wed, 19 Jul 2017 09:57:19 +0000 Received: by mail-wr0-x22b.google.com with SMTP id y43so56514346wrd.3 for ; Wed, 19 Jul 2017 02:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ypy2z+ApjKrjREmw8PUFYGZnVo6QtuK+Dh56pZVdke0=; b=VtCQkwcdtK0vyGoyMIGncz5zevzSgpqxuZy+lTPDv40zB89IuZKO1FI4uwNVwUv4pR oPXHGN3jxdEva+alATmSMQZQ5axaioMZR/ySEbidgEG/MCqLMxg590SONQTlkpQMMaCC z6oBcluqDUxGs+qdl5na9azTDVI3FIQ2UZEHQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ypy2z+ApjKrjREmw8PUFYGZnVo6QtuK+Dh56pZVdke0=; b=BBhDCCrPcH4MYWwhmwvaf0kz7xVQB6dehBTQkj2WvVUlEpbaVJFbLIs1qNaUIUIkOw zx7iZ5njtmmEDrvudh5zvLPA5+oxQHTA31ddqDZFcV1enUJ4V9x9O/TBfSECBTwW00US 5+04gF8DI7SHzex1cEcM06HKjmlWcdpW4TLNRW05ou2fpjqwQybwo6eIJTJ5t4LyXeJ+ eNl6hRC/BUr04PJAwMIpUXaEc8QiHP39YOVSoMCEPImUqfvAjHVV9dbZ7vWKZjXCrZYE IXmsPGqknoDE8H8XU+lMEeX1TkfdhfK53RVROYLq65cs5tV5S99LAtdmajtEHY7c/Xq8 o1zQ== X-Gm-Message-State: AIVw111rP0QZOlaN9M70JI4xOMKM4koFCc1DWPZgBbevWCZFVq5zC2J6 EuqWK5OA23wgpctv X-Received: by 10.223.172.211 with SMTP id o77mr3524949wrc.201.1500458209318; Wed, 19 Jul 2017 02:56:49 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id 16sm20181480wmk.13.2017.07.19.02.56.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Jul 2017 02:56:48 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Jassi Brar Subject: [PATCH 5/6] mailbox: bcm-flexrm-mailbox: Set msg_queue_len for each channel Date: Wed, 19 Jul 2017 15:25:41 +0530 Message-Id: <1500458142-19243-6-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500458142-19243-1-git-send-email-anup.patel@broadcom.com> References: <1500458142-19243-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170719_025711_780052_36D4E492 X-CRM114-Status: GOOD ( 11.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Florian Fainelli , Anup Patel , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Broadcom FlexRM ring (i.e. mailbox channel) can handle larger number of messages queued in one FlexRM ring hence this patch sets msg_queue_len for each mailbox channel to be same as RING_MAX_REQ_COUNT. Signed-off-by: Anup Patel Reviewed-by: Scott Branden --- drivers/mailbox/bcm-flexrm-mailbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c index 46ad305..ec3d57b 100644 --- a/drivers/mailbox/bcm-flexrm-mailbox.c +++ b/drivers/mailbox/bcm-flexrm-mailbox.c @@ -1674,8 +1674,11 @@ static int flexrm_mbox_probe(struct platform_device *pdev) ret = -ENOMEM; goto fail_free_debugfs_root; } - for (index = 0; index < mbox->num_rings; index++) + for (index = 0; index < mbox->num_rings; index++) { + mbox->controller.chans[index].msg_queue_len = + RING_MAX_REQ_COUNT; mbox->controller.chans[index].con_priv = &mbox->rings[index]; + } /* Register mailbox controller */ ret = mbox_controller_register(&mbox->controller);