Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2440311pxu; Mon, 14 Dec 2020 02:20:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwK/PRN9ZGjQcaEou3AVNP8ymSJD2w0z/t9BwIngyfUIQgiOH5D8E7jfzxK58XUkWagD2bB X-Received: by 2002:aa7:cd84:: with SMTP id x4mr23293515edv.192.1607941226419; Mon, 14 Dec 2020 02:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607941226; cv=none; d=google.com; s=arc-20160816; b=LpQNvTrXl5cP6N2d5fFsM+L1/wTYO6OXi1PybTrbjiqRD5HuIbmcvas+W91P00+wvo oIQmzz6qFGoXJAE7YEYSJ9hIxq0F0pD41uRwMBMOqSTm5dia5E4ZWvocw8w9mRrSxVb0 GA1jGCSTKOI/hQPcCbmZFIUuevGuXoSZGR6zusyLpjnMoxsg17GkVjq1dmBfrT1NtVYX V3F6mNvGzFZBIFwXzc58PhAA98bhN0mHz7vkOLFPKi0Ssy8v+05d8xcT7OrsipdE4SE4 ps9gX7vsAnvZxfUcMWfo3w53vF5kxddtDv3su5p4Gtu3MTPnRo9PdnUC8oD5YH4c4RMJ ELoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=T6srFUPhGMEYv25NnXpMUM6iBufFuKd/vtRKGzk+i5g=; b=kez4ysxDZjIWeAgPWorGuyju8yhGXCFXzEXa/H3pkpjgcfZXRbbkshG9FT5/z6Oh25 WCTvGPevn0rGmMwePh8y/CixpFSB/xrtYIaNdd38MU+NidUNqYFK4NRzJ9Ej2vm3QON6 mGcKf+fIkwULjsEFjn4zCkgEtmuRR82f2uQdS79Lt2cJyDmafLPLnMoEKPl6mlkpcUVg 5wXciSer2RzXyHoKDZ+KHLe7KSKKSQ4ETsHV0VaqZnrIcTwkB7KWdvCn24LSCK/vs0YG S1nOfVv903LXEKvAvmGQwD5x15LsC5aU75EFn+2oa1ma6/d94lwi4TxhO6gFd60Gjh+C JR5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZwVSGxCq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si483102edq.181.2020.12.14.02.20.03; Mon, 14 Dec 2020 02:20:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZwVSGxCq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439559AbgLNJRk (ORCPT + 99 others); Mon, 14 Dec 2020 04:17:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729478AbgLNJRg (ORCPT ); Mon, 14 Dec 2020 04:17:36 -0500 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B672C0613CF; Mon, 14 Dec 2020 01:16:56 -0800 (PST) Received: by mail-qt1-x844.google.com with SMTP id c14so11400462qtn.0; Mon, 14 Dec 2020 01:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T6srFUPhGMEYv25NnXpMUM6iBufFuKd/vtRKGzk+i5g=; b=ZwVSGxCq8fvkgDL94jTt3KNBTC0+gtQA4d3asnr02hVS5DrXAaOxasRrw6tb/LeF1o SvTejIMyvW7HJmpBkqyRegusAxSZml64Dq4p0TFgnChDxsbSlHcu9WfB7tuqwHbYELUH nxL7puPwEm/6SXYdFJeJvq7cqHgvj0pDAX5NhIfRyH6PtUjHMgQ9KTillMMu+xFiHyai euZ4WH3/vW8yFFD+7tmqXnNJ7ZSv+Zs513MAZVgM6FoXVCD5sAQoJANoz8IzPq2kjWF9 A/oOQ3D5eFM7Gb7/CMYZZdilWvqgIvheRrdHhlhYdxAgdTds7mcaY28y/qrhfMOegk4E Fp1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T6srFUPhGMEYv25NnXpMUM6iBufFuKd/vtRKGzk+i5g=; b=GOFtOx+fiqzVYxy1zj6pqKpJNDEcdfKzE81fba9zkdXx1FeeCgkqQF1fLW/xPzYaOR qflBGqKOu3eKMSLNdbamvm54N4I7mqQvQIkZkbRpkqO8uHYiB/lgmj7wWMW7+0DiDlcD 7sZpmeVRwr2hJ1ZKLbdxuFnpJG6MBWUVB/Lyh1DXneck+LfNitoPiMKGPd5VEp2ePOgu ZXufJ3V73vrTo2ezZfQyo2gXM/FGgCTb9YykszWm2gYp/9R4/hOyKgEtpfmfzB8bGVhF S+87xTJS2aIC15ZcwVMvhczkG1KeFPe/RwBMUTIBokxt4VU9peiaTD4QYQAunxJsEjcM DGNw== X-Gm-Message-State: AOAM531/5AilN7ApLOC4RUv0VmOS2Ag5JD1zBzv/71XFPknJmAeMSWm+ 3bWiarh06OIDwBEy4jXS3XuqDL+tPpPjY4k8Uhk= X-Received: by 2002:ac8:6f41:: with SMTP id n1mr29678010qtv.170.1607937415616; Mon, 14 Dec 2020 01:16:55 -0800 (PST) MIME-Version: 1.0 References: <1607670251-31733-1-git-send-email-hemantk@codeaurora.org> <1607670251-31733-4-git-send-email-hemantk@codeaurora.org> <81dfd08b90f841194237e074aaa3d57cada7afad.camel@redhat.com> <20201211200816.7062c3f9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20201212060818.GA10816@thinkpad> In-Reply-To: <20201212060818.GA10816@thinkpad> From: Daniele Palmas Date: Mon, 14 Dec 2020 10:16:44 +0100 Message-ID: Subject: Re: [PATCH v17 3/3] bus: mhi: Add userspace client interface driver To: Manivannan Sadhasivam Cc: Jakub Kicinski , Dan Williams , Greg KH , Hemant Kumar , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, jhugo@codeaurora.org, bbhatt@codeaurora.org, loic.poulain@linaro.org, Network Development Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Il giorno dom 13 dic 2020 alle ore 15:22 Manivannan Sadhasivam ha scritto: > > On Fri, Dec 11, 2020 at 08:08:16PM -0800, Jakub Kicinski wrote: > > On Fri, 11 Dec 2020 11:37:34 -0600 Dan Williams wrote: > > > Just to re-iterate: QMI ~= AT commands ~= MBIM (not quite, but same > > > level) > > > > > > We already do QMI-over-USB, or AT-over-CDC-ACM. This is QMI-over-MHI. > > > > Why do we need a different QMI-over-X for every X? If you say there > > are already chardev interfaces to configure WWAN why not provide one > > of those? > > > > Just because the underlying PHY is different and it offers more services than > just configuring the modem (downloading crash dump, firmware download etc...) > > The existing chardev nodes are closely tied to the physical interfaces. For > instance, /dev/cdc_wdm is used by the USB based WWAN devices. So we really can't > reuse it for MHI/PCIe. > let me also add that the current MHI UCI approach makes sense because it makes the switch USB -> PCIe smooth, since all the current open-source userspace tools (e.g. libqmi and qmicli), according to my testing until now, properly works without any need for a change, behaving the UCI QMI char device like cdc-wdm. While a different solution (which one?) would maybe cause to re-think the userspace side for having the same high-level behavior. Thanks, Daniele > > > It's not networking data plane. It's WWAN device configuration. > > > > Ack. Not that network config doesn't fall under networking, but eh. > > I wonder - did DaveM ever ack this, or was it just out of his sight > > enough, behind the cdev, to never trigger a nack? > > > > > There are no current kernel APIs for this, and I really don't think we > > > want there to be. The API surface is *huge* and we definitely don't > > > want that in-kernel. > > > > It is what it is today for WWAN. I don't think anyone in the > > development community or among users is particularly happy about > > the situation. Which makes it rather self evident why there is > > so much apprehension about this patch set. It's going to be > > a user space channel for everything Qualcomm - AI accelerator etc. > > Widening the WWAN status quo to more device types. > > Well not everything Qualcomm but for just the subsystems where there is no > standardization right now. I think we went too far ahead for standardizing > the modems. > > Thanks, > Mani >