Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp4039427rwi; Wed, 2 Nov 2022 06:14:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5UWe6iSBFIJ8x02QovlnZ1Nm8AYOZsC7gGG8AKJSajwTAQv0kGUeI90uh1yr9eAJa2ebzS X-Received: by 2002:a17:907:9728:b0:7ad:bb63:52eb with SMTP id jg40-20020a170907972800b007adbb6352ebmr19571525ejc.338.1667394865119; Wed, 02 Nov 2022 06:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667394865; cv=none; d=google.com; s=arc-20160816; b=sEtqX5ga5Tu01dlvv/xN0e7zVGw3JhqTa5EuPDfkDDC0W6BZ0nRkFkmp2mAnT4WWpH MCQnODurOY/3YrTOVEgCBsLQpjc6Z2AvUFZUXt6Z83JkKLjA4/gxSj6ece/+RD+/67a/ bbLCpONNCDevB9S0B6Uu8uX2zdt3d5eexnasZdeWbpmdGpHj4KCMP6x9kVgT7Mp/fxvd Zp4gTibrzPHxKLWBuhQkedKdS6u9Swih/ZSIX22H3HJEBH0iKlvkMZcBFLDzcXP2bqxJ jNnQEy9T6aSS02hdmjM0ouZf7gpXupJMNnFPGDTRpTXjbqOjxDjZyNoWrd9dcWOCmBUr 952Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rVoqwQtnfDjLy/ozUciPmsp5B0xPL3lV6A53zeWbLfU=; b=wuUfu/K1E0XUMBhI6x7VA4L/NwzYPUMFtSUxA8I8ZlpFOZELrhf3flAr+fyAuOayC2 Qt7fv97RMoY1ds4NH2vVeBY3DEa7uHw3KoJgTKy1y2ItIcUZEpLOP3XHpOuV2p+A1/+w jcjG357SC3UdmD8HXQUcEgmYyTBpXFyhD7/Hry1QGWoobyVb5i/H7n5+1Jfi2oJVwHYI m2QpJaBhGDYcbbnflV1Oo0jSbN77UPRyQlaQVF+7M8VfppAzaDDmO8bs3QPER8OSQX9k y3P0HM+GZi1kL9vcFN5ULFokExbmwuZ8CeQfkMjhd9CAoP+k/cFau25kZrkhD/h77+Le 9vSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jWf2L0nP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a056402038700b004612915d1a0si11940961edv.507.2022.11.02.06.13.59; Wed, 02 Nov 2022 06:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jWf2L0nP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbiKBNBH (ORCPT + 99 others); Wed, 2 Nov 2022 09:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbiKBNBF (ORCPT ); Wed, 2 Nov 2022 09:01:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2452A2871B; Wed, 2 Nov 2022 06:01:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B4B8461944; Wed, 2 Nov 2022 13:01:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22CBBC433C1; Wed, 2 Nov 2022 13:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667394064; bh=Ya+iV47LngMO5VZBW5zw3eNDPPh+/xOf7mFH1rcefm8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jWf2L0nP1CzYSuCw4UIYQPM0LcIFv2V1WlgxECyN4mzjXlJfEyeUQU/9AISPjlsxd Pw4b6aQJQQ1IlsvAWKSFIbczFeQBoEhygkNp+a0YnuL+whqT8m+228rfpezw5Y0xav pbbSYulTImNaJyh1PU4wv3yjpL4yVSQXh6ZiANhkw72Aq2qHfMMKVgxytZVCRiip+S IOl97QHbliKNFYqPyxVR/ecaABZrRgdtS7DiF/1lxqdthO32SpXR6PAHJPJ1W/zM1Z pGALiy8svhptgcXY/TfeDDh/sSbgO9aTg5sKIPr7pNxTLiAiqbIO4/iC0mgGG45RIq zWTOMZ1Rb8Ikw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oqDMN-0005YT-OQ; Wed, 02 Nov 2022 14:00:48 +0100 Date: Wed, 2 Nov 2022 14:00:47 +0100 From: Johan Hovold To: Manivannan Sadhasivam Cc: Johan Hovold , Hemant Kumar , mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mhi: pci_generic: add support for sc8280xp-crd SDX55 variant Message-ID: References: <20221031083429.18971-1-johan+linaro@kernel.org> <20221101114258.GB54667@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221101114258.GB54667@thinkpad> X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 01, 2022 at 05:12:58PM +0530, Manivannan Sadhasivam wrote: > On Mon, Oct 31, 2022 at 09:34:29AM +0100, Johan Hovold wrote: > > The SC8280XP Compute Reference Design (CRD) has an on-PCB SDX55 modem > > which uses MBIM. > > > > The exact channel configuration is not known but the Foxconn SDX55 > > configuration allows the modem to be used so reuse that one for now. > > > > Signed-off-by: Johan Hovold > > --- > > drivers/bus/mhi/host/pci_generic.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c > > index caa4ce28cf9e..f9f4345d472d 100644 > > --- a/drivers/bus/mhi/host/pci_generic.c > > +++ b/drivers/bus/mhi/host/pci_generic.c > > @@ -542,6 +542,9 @@ static const struct mhi_pci_dev_info mhi_telit_fn990_info = { > > static const struct pci_device_id mhi_pci_id_table[] = { > > { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304), > > .driver_data = (kernel_ulong_t) &mhi_qcom_sdx24_info }, > > + /* SC8280XP-CRD (sdx55) */ > > Platform device name is not needed. Ok, only added it because the other entries had a description. > > + { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0306, PCI_VENDOR_ID_QCOM, 0x010c), > > Sub ID looks wierd. Did you test with mhi_qcom_sdx55_info? If it didn't > work, what was the issue? I obviously added the new entry because the default match did not work. I haven't had time to look at this since before the summer, but based on my notes and a quick test now it seems that the QMI channel is not supported and ModemManager takes forever to enumerate with a bunch of failed transactions every second: ModemManager[469]: [/dev/wwan0qmi0] Checking version info (45 retries)... ... ModemManager[469]: transaction 0x2 aborted, but message is not abortable ... ModemManager[469]: transaction 0x2e aborted, but message is not abortable ... ModemManager[469]: [plugin/generic] could not grab port wwan0qmi0: Cannot add port 'wwan/wwan0qmi0', unhandled port type According to my notes I could connect to the provider after the (~45 s) timeout, but no data was coming through with the default config which I attributed to the differences in the data channel configuration (i.e. "IP_HW0" and "IP_HW0_MBIM" are handled by different drivers). > > + .driver_data = (kernel_ulong_t) &mhi_foxconn_sdx55_info }, > > /* EM919x (sdx55), use the same vid:pid as qcom-sdx55m */ > > { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0306, 0x18d7, 0x0200), > > .driver_data = (kernel_ulong_t) &mhi_sierra_em919x_info }, > > -- > > 2.37.3 Johan