Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3149230lqo; Wed, 15 May 2024 00:41:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXm678FbzfL84c4btkcK+eXGXREehugAxgoLvIBnAqhI6BIP0L7+xMcZj0cbnJzYttZDkfKwofYZaayARYjgZwIsTpspXlyLeqnkUoaw== X-Google-Smtp-Source: AGHT+IF8M9Fpke2BFcc75aMOiUyFTVxDglEoNDGglrRBBk6Jp5lKtnKkv1lyFjOjFLxH7ioJUxEj X-Received: by 2002:a05:6a00:14ca:b0:6ea:8793:6d64 with SMTP id d2e1a72fcca58-6f4e0347a6dmr20622099b3a.23.1715758895923; Wed, 15 May 2024 00:41:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715758895; cv=pass; d=google.com; s=arc-20160816; b=ZMPyQ/BtmcuNF/rLhR+JYWQks5dNl/x+U7Bi+iAchOdC6rTocnx9fnnswjITEOkf9g CK34jEQrF64eFepYnbHE5Ns7A7y0UpLgd9Iw4oJkt9ZsLkV1xiSnQGdcmomKwt8w+km9 /3Us45F8uvBNZD3gMpiND8W3lkoRuVHkkucZrxUnKnQn0R3TvoPR7MEvgRChIL2MGAny ySyS0vSyqdVjyYTEk06PO5P2vZyZfUNvaRJ1w4VqUDBxKnYqt0ALD6lT9F5LD4wD0zOz 6SivUrSw/AyY19nwUi23M6RVqQsjyTyWyoPEAF1LMbWQBUzd2av9/T6MONr59zc7/po8 GVpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3JHt5mzBMB3tfzCLNPXhZ+TCuVkqxJvVqoFszdx1YnQ=; fh=8uF8H2CzzMA9OvBQcZrmeBQgsDhisvdXzEs6fnExjK0=; b=OflKko/+wP9U4uVgxGJC3hxhnsx0iVwsKndqsPRkw5bRSBZpHLWtSUGDk2iPjv2Z02 8r0kXVQb/0Ve1NPVTFRx9y69U/3/aY2rBpEHBBLgKS6pc9G6nfp1VNY86EEDMbN1Bd4H k/LbwezTX1aqFsoGfkkd2dLLW27Uzsw5EcCmyxJPRxJmhY/d6miyU1MfntSicj3bcMmX Ejs6pURRY860rmwAxm/WAjlxWwOxJOzJZJaHaciWCmeTpO200h4eLt9Mz5AiiZrReirc mmFUafm0oYgbHwi/T6TDUYglc2eAJNMOpHEd/DZn0iUElLPt6t8+dZILBRpMFwYwYcrC icQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QkfXWV1N; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-179596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a971a2si12016125b3a.132.2024.05.15.00.41.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QkfXWV1N; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-179596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AF5AF2823B6 for ; Wed, 15 May 2024 07:41:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D06E44C7C; Wed, 15 May 2024 07:41:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QkfXWV1N" Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3E25446A9 for ; Wed, 15 May 2024 07:41:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715758884; cv=none; b=sCVyrp/lb89fIrz4dY8mvYfzhezMxBQtDNvOkRiRQEUI8gGdnO8HlZ1YBCwNxd/pq3G9plgts0CYlGNTuJjJgnu1Fd1Lky6C9L0/Rt6T7pbySuS7rFNjB+ncL0zddjLyn0RbRi75oNCKpep3B46SakxgV6TTX22LAmMz5cZve0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715758884; c=relaxed/simple; bh=RFW3BR0Fx+ilvq56Z5emz/Ta0NJMDiHFx1b3U+5kH5A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FHZKX0BBqKrR9qSo1LqgRQj9WYU3NUUZd72ysLLFVdZbyD4ymrkSzylMlXjBz/sIc/xR6on2tVJTZ5VRDtxupsaortxZoGBBrVI77T2/GGw8RNHOEe/EqfbzwlUaFZitlGAd4AWlWIHA//VZ/qrfDcuZGKpwjSAuI7j9EOw2iiI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=QkfXWV1N; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-34d7d04808bso4971410f8f.0 for ; Wed, 15 May 2024 00:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715758881; x=1716363681; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=3JHt5mzBMB3tfzCLNPXhZ+TCuVkqxJvVqoFszdx1YnQ=; b=QkfXWV1NKNeuGJ6yKXRSBozVvJZztDzFc41BYDGcQN43KgC5miOk/nKqj2+dM1NU60 6q+bQREeizoq6dVoMFuBV21IX3TvQudlYWkFGvY6EySWl5dqVo9/2sWs4NOkET2ggoqM nVnkS9sEHj81ETnUxPutIIN3g72oY11o+iy/E5YGrUnF3Uy1AJTUqr5tPeXagARApU6A 4I4bTcWK+/wcKYHZpwYRbiGT6c5A+2ane311AeA1KO0W2niM4lrxXuIQobw0E5zLX16A qDwaNKeoztqZ7semPSxuZUh/1u1wS+5DW1HG9Iwr8bI7Cx9OOa45SYg/ofCDSchfqCCA of7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715758881; x=1716363681; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3JHt5mzBMB3tfzCLNPXhZ+TCuVkqxJvVqoFszdx1YnQ=; b=g5LfIT56z2lm2RFakAU8FknIDbb65bEksOOEuopYXGfoUdiGA5GA3o+ZzfrFtLltFx yL3pqCFWKtpyJNhqc+meXOKEIEKtUi5hDx7Q8ifmFqkk4xHryHQjDXiDNIwglaYOLvF6 9rXohtiqGEJ5o+Ns9o16FnzzlpmavuNmLW0fuYn7IN6ZJYJyTAMQqGqJtujYQvCt/9y8 jtBFNf6UlJ8FzdrzdYn/ENorgq4Seqz5VhWJMSR0tUpjqhe6U5i5GHlV1GEruaJ5jYyB vjIlIOczv7mCLXf3vqudRpXu1K/rF+nNl2skV/HHFNOvCtvvjZIkHo25SY3FMSjMpmR/ ZOsw== X-Forwarded-Encrypted: i=1; AJvYcCVLoTD0uFA8VCstRqIkNS4f8qlZX+JMY0z0cgwNFGdA34AzdWhEQOlNVpNlxwl4aL8zVBu74asBmEYssatKCFW9bJjg8ogNX2qJo4fw X-Gm-Message-State: AOJu0YwZNYmiNs4wfSXm9sChsHoMZED3F1lApiYEoi+ltWr+nQe06OZa NUXxQQPH4pVibgfYT5rLabyyN9Agot8I1uFtGnsNetpXVQ4IDQGl1WaZToAskw== X-Received: by 2002:adf:eb49:0:b0:345:816c:6e16 with SMTP id ffacd0b85a97d-3504a632b68mr13926271f8f.25.1715758880897; Wed, 15 May 2024 00:41:20 -0700 (PDT) Received: from thinkpad ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b8a78cdsm15608272f8f.58.2024.05.15.00.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:41:20 -0700 (PDT) Date: Wed, 15 May 2024 09:41:19 +0200 From: Manivannan Sadhasivam To: Slark Xiao Cc: loic.poulain@linaro.org, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_qianyu@quicinc.com Subject: Re: Re: [PATCH] bus: mhi: host: Add Foxconn SDX72 related support Message-ID: <20240515074119.GA2445@thinkpad> References: <20240510032657.789629-1-slark_xiao@163.com> <20240514143741.GA2306@thinkpad> <541de8e4.1600.18f79de44f3.Coremail.slark_xiao@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <541de8e4.1600.18f79de44f3.Coremail.slark_xiao@163.com> + Qiang On Wed, May 15, 2024 at 09:29:20AM +0800, Slark Xiao wrote: > At 2024-05-14 22:37:41, "Manivannan Sadhasivam" wrote: > >On Fri, May 10, 2024 at 11:26:57AM +0800, Slark Xiao wrote: > >> Align with Qcom SDX72, add ready timeout item for Foxconn SDX72. > >> And also, add firehose support since SDX72. > >> > >> Signed-off-by: Slark Xiao > >> --- > >> drivers/bus/mhi/host/pci_generic.c | 31 ++++++++++++++++++++++++++++++ > >> 1 file changed, 31 insertions(+) > >> > >> diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c > >> index 08844ee79654..0fd94c193fc6 100644 > >> --- a/drivers/bus/mhi/host/pci_generic.c > >> +++ b/drivers/bus/mhi/host/pci_generic.c > >> @@ -399,6 +399,8 @@ static const struct mhi_channel_config mhi_foxconn_sdx55_channels[] = { > >> MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0), > >> MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0), > >> MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0), > >> + MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0), > >> + MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0), > > > >This means SDX55 is also supporting FIREHOSE channels, which is not true I > >believe. > Actually, I just verified it with my sdx55 and the answer is Yes. These channels > are common settings for Qcom device which support PCIe mode. BTW, the > default settings of Qcom and Quectel support firehose for their sdx55 products. Qiang, can you please confirm that SDX55 supports FIREHOSE channels? > > > >> MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0_MBIM", 128, 2), > >> MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0_MBIM", 128, 3), > >> }; > >> @@ -419,6 +421,16 @@ static const struct mhi_controller_config modem_foxconn_sdx55_config = { > >> .event_cfg = mhi_foxconn_sdx55_events, > >> }; > >> > >> +static const struct mhi_controller_config modem_foxconn_sdx72_config = { > >> + .max_channels = 128, > >> + .timeout_ms = 20000, > >> + .ready_timeout_ms = 50000, > >> + .num_channels = ARRAY_SIZE(mhi_foxconn_sdx55_channels), > >> + .ch_cfg = mhi_foxconn_sdx55_channels, > >> + .num_events = ARRAY_SIZE(mhi_foxconn_sdx55_events), > >> + .event_cfg = mhi_foxconn_sdx55_events, > >> +}; > >> + > >> static const struct mhi_pci_dev_info mhi_foxconn_sdx24_info = { > >> .name = "foxconn-sdx24", > >> .config = &modem_foxconn_sdx55_config, > >> @@ -448,6 +460,16 @@ static const struct mhi_pci_dev_info mhi_foxconn_sdx65_info = { > >> .sideband_wake = false, > >> }; > >> > >> +static const struct mhi_pci_dev_info mhi_foxconn_sdx72_info = { > >> + .name = "foxconn-sdx72", > >> + .edl = "qcom/sdx72m/xbl_s_devprg_ns.melf", > > > >What is '.melf'? Is the firmware available somewhere? Did you plan to upstream > >it to linux-firmware? > > > This file similar with "edl.mbn". In SDX72 product, the default "edl" file name is > "xbl_s_devprg_ns.melf". Currently we don't plan to upstream it to linux-firmware > since 2 reasons: 1: we share the same fold name sdx72m with qcom or other vendors > 2: this file may be changed since sdx72 product still under developing in our side. we > may change the base line according to QCOM release. Then I would ask you to add support when you have a stable firmware. I do not want to change the firmware name after some time as it will confuse users. - Mani -- மணிவண்ணன் சதாசிவம்