Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp209534pxv; Wed, 30 Jun 2021 18:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAMLhRVvR+oopkLFvf5KzxUSU7joGSYZiAR54IEUw+4p8L9xDkYTrZ05WND9b/yTZuF0Zq X-Received: by 2002:a05:6402:1c82:: with SMTP id cy2mr17810375edb.324.1625104487843; Wed, 30 Jun 2021 18:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625104487; cv=none; d=google.com; s=arc-20160816; b=xUF/KgCFuALPDHHNyfjFiIcAmWB3581QR/2mTg88tIKgSZaTrlUJTIaN2m6zgGRSOf OfB2MTU969gplQI8jx7Ppmz1UdHn52mRsT2Qw4y7pTVR4CBZ6qJss8bWvvzwuopJRVy9 ZpHT/82/sQ+0VXe8s2spzal7X68KWqZhD4JxRNPvsvvsGTyqwCiz4f9hAzxL76bPfxy3 FViSPRoVaqrlnlBKGWqo6AtkDaaXYRy4VXEqqfJnKLrfbLooI6BB7/FP6OsGrsPj+xR3 DJGt3SMkvssBspOn5ObRyMISep1osyO12jJfuQbqs2Ooo8QYwPe1nyQL33BAjTHyeluz xmKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dmarc-filter:sender:dkim-signature; bh=GfsJyQhj+sUiLq2l9kHCkcJApYLVCP2VhlOanwPbPpw=; b=YSiVayro1ezKgVjYpCySwx3S5JmDE7Mvn09V7FmHLJ/FHZPqJ/3NIKYBokiFoHZSv1 Qd0VGwY1oeTYch8Xqnxs54HLEa8xOXvRDgW01mS831XIVYvhu21NmeP7P/81IBRBfcNm UVx/3Lwxmo8vL+OjHwwkKIKhBXqp97L9kMPZHTQIWwo/qMQr6HWVVzVoKgRVehIFtQDg gNqp3zp60kmCEnqHFEU6ZsTuZxJaX2EPriGfuBn+iJNF50+cShebXF9Fdc5nv1q/1SJ5 oNie3B6KHZuveSw2n8XFZ/uydjN/Dw5vb3P4w/TxL09U+q2b2kv7b2ixhb1C48tm/PiI Ka9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=C60knadp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y23si21305772edr.101.2021.06.30.18.54.01; Wed, 30 Jun 2021 18:54:47 -0700 (PDT) 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=@mg.codeaurora.org header.s=smtp header.b=C60knadp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238504AbhGABzg (ORCPT + 99 others); Wed, 30 Jun 2021 21:55:36 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:56679 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238416AbhGABzf (ORCPT ); Wed, 30 Jun 2021 21:55:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1625104386; h=Content-Transfer-Encoding: Mime-Version: Content-Type: References: In-Reply-To: Date: Cc: To: From: Subject: Message-ID: Sender; bh=GfsJyQhj+sUiLq2l9kHCkcJApYLVCP2VhlOanwPbPpw=; b=C60knadp/0k8R26lI6YDpXJEwuMzO82aXQg61HIiF7idwOHljRFbtWpMjhuGIJD45eqSx9bs Av+8D4jThxT7JU2EYQjcBAgAoLCL6UePOHCA+qRuzRH5qekMjQFpRnan66xO/h016udG8YNB ri0z55qptkWGrcp6wfBigExaX4U= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 60dd1ff95d0d101e38f0df52 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 01 Jul 2021 01:52:57 GMT Sender: hemantk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5287CC433D3; Thu, 1 Jul 2021 01:52:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from hemantk-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hemantk) by smtp.codeaurora.org (Postfix) with ESMTPSA id 00837C4323A; Thu, 1 Jul 2021 01:52:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 00837C4323A Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=hemantk@codeaurora.org Message-ID: <1625104371.10055.21.camel@codeaurora.org> Subject: Re: [PATCH v3 2/2] bus: mhi: Fix MHI DMA structure endianness From: Hemant Kumar To: Paul Davey , Manivannan Sadhasivam Cc: Bhaumik Bhatt , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 30 Jun 2021 18:52:51 -0700 In-Reply-To: <20210629035357.11091-3-paul.davey@alliedtelesis.co.nz> References: <20210629035357.11091-1-paul.davey@alliedtelesis.co.nz> <20210629035357.11091-3-paul.davey@alliedtelesis.co.nz> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, On Tue, 2021-06-29 at 15:53 +1200, Paul Davey wrote: > The MHI driver does not work on big endian architectures.  The > controller never transitions into mission mode.  This appears to be > due > to the modem device expecting the various contexts and transfer rings > to > have fields in little endian order in memory, but the driver > constructs > them in native endianness. > > Fix MHI event, channel and command contexts and TRE handling macros > to > use explicit conversion to little endian.  Mark fields in relevant > structures as little endian to document this requirement. > > Signed-off-by: Paul Davey > --- > Removed Tested-by as patch has changed somewhat from v2. Bhaumik is going to help testing V2 on x86 platform. Change looks good to me. Will ack it once testing is done. > [..] > Thanks, Hemant -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project