Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1448063imm; Sat, 4 Aug 2018 03:47:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdsh+PD8Hy3xQkHe81+hnt9hH8h+66r/Rw9Pn5rNpuvLdW4rf9j2GcnxmXSo37R36AFRbMg X-Received: by 2002:a62:129a:: with SMTP id 26-v6mr8581263pfs.102.1533379677972; Sat, 04 Aug 2018 03:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533379677; cv=none; d=google.com; s=arc-20160816; b=jU3s4PjGfXpLgJSvCf+Tvk5yHQf2R3wMaitApXei8kMGcl1SHQNJuQa1xxDKpa7j1R pNOBH/iOxhrM5e1ZWE2zUWFCnweGJUtNtwJyRXtQ/qzdX03O0nfN2qDlVg+DkBepLIUF P9WRvJ4NPH4Vy1u8ncO6hsUFq5XD+1Mh5N0Uit+WHNMooBqYYCA8T7E4pOxO4NEqzaDh p4IRP68zpVnGKfAp8QNNo531cUzBT4Qn2lBodbUyxrKwcubspi72qaxbW1Qc5mue+aHM qtAdCL3nzPOR5UUs7QyLshO+eZllTNcKgkCDP2YyhaGoaEZAs3XF9icP2D7avVBS1AEu zE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=CQtI1CvcneBmbgMnFmRBQ8DBLmVsBp11DbWWQ+ped8s=; b=CSJ6VJL5kHjy9B8ueDVOMM02YFiTCXfcNxPWa1ssNsl7Tq4tBnwO97UYe2/dycKZWI JzeMxwldo6Sr1OBw+Uaun6+XgpPySID6tBFtc+Uqxc6y4ioIcqzuPmrYU5w7GHOgmOgc 5GFneZbqJ+e/lIswb3vFXK3DyoU2TCHbcfdjgMGCeSsRxeBIDz2dDrI7vXA/hF2/d83w SDXTe567/L3b/xZreD0JrrKzzSER28VS+FsDKbkMX3f6DASbZ9ItuwL4fHBnL9DCQAD7 /u+ImSMEDVbcUsrMTx0sZiw1q+Z3rp7VL1qZYO1rE+2piwWLZLwicJQrgSxRxUVEl8Iz C+1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=lwV87Vjo; 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 i2-v6si5786401pgs.432.2018.08.04.03.47.30; Sat, 04 Aug 2018 03:47:57 -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=fail header.i=@kapsi.fi header.s=20161220 header.b=lwV87Vjo; 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 S1728089AbeHDMqX (ORCPT + 99 others); Sat, 4 Aug 2018 08:46:23 -0400 Received: from mail.kapsi.fi ([91.232.154.25]:35191 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726855AbeHDMqX (ORCPT ); Sat, 4 Aug 2018 08:46:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CQtI1CvcneBmbgMnFmRBQ8DBLmVsBp11DbWWQ+ped8s=; b=lwV87VjoZpf0I7NW/8GA6qz/Ph dt/yO1YfVtE57Q0sLe9+MRIRx/zUyy05EmgD13CfHSYvr5LcPk6kHa3vN5hP3hbq9zNCX0HQcYYld 2kPMR7D47ty4UCAF7HXWdAR2BJZX/3QMSpyxTX6m/oBasysV9t2aFYEheP0z1qFGqxQBL+02+kbWn 2EjoWXCU5RyrKvRFtLWCrROlKvh5Rt22Fk68GECYpAn66cfsKdQF+t/fU//uJrMXU+9he0ziCXl4J 02MQMgSBbfrFID6mIaRXrSDNK04C8juVHOIxYF85cTxcl4uJEGdB1A061c+t+y+cRYk0QOK1qrp+E Gbj/+1/w==; Received: from dsl-hkibng22-54faa2-250.dhcp.inet.fi ([84.250.162.250]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1flu4D-0002Xd-Ib; Sat, 04 Aug 2018 13:45:49 +0300 Subject: Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option To: Jassi Brar , Mikko Perttunen Cc: Greg KH , Thierry Reding , Jon Hunter , Devicetree List , linux-serial@vger.kernel.org, linux-tegra@vger.kernel.org, ", linux-arm-kernel"@lists.infradead.org, linux-mediatek@lists.infradead.org, srv_heupstream , Linux Kernel Mailing List References: <20180702114033.15654-1-mperttunen@nvidia.com> <20180702114033.15654-4-mperttunen@nvidia.com> From: Mikko Perttunen Message-ID: <907bac36-0c54-8f38-0f5e-f59196d414c6@kapsi.fi> Date: Sat, 4 Aug 2018 13:45:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 84.250.162.250 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/2018 03:54 PM, Jassi Brar wrote: > On Mon, Jul 2, 2018 at 5:10 PM, Mikko Perttunen wrote: >> Add a new TXDONE option, TXDONE_BY_BLOCK. With this option, the >> send_data function of the mailbox driver is expected to block until >> the message has been sent. The new option is used with the Tegra >> Combined UART driver to minimize unnecessary overhead when transmitting >> data. >> > 1) TXDONE_BY_BLOCK flag :- > Have you tried setting the flag mbox_chan->mbox_client->tx_block ? No - I suppose I should have done that. I'm a bit concerned about overhead as send_data may be called thousands of times per second, so I tried to make it as close as possible to the downstream driver that just pokes the mailbox register directly. > > 2) Implementing TEGRA_HSP_MBOX_TYPE_SM :- > In mailbox framework, a controller is a collection of identical > channels. That is, instances of the same class. > So ideally, in probe you should populate a controller for each > type of channel, i.e, DB, SM, SS and AS. Hmm, yes, I guess this would be possible if I change the mailbox core to allow registering multiple controllers per device. Thanks! Mikko > -- > To unsubscribe from this list: send the line "unsubscribe linux-tegra" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >