Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp812590ybm; Tue, 21 May 2019 04:05:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJYoICsCBMv6tnU4I3v0Yw9CxnGXueqlVUaU2g1nd/glLOFhcVP0a/fXfN2BgCRoOMtQfh X-Received: by 2002:aa7:9577:: with SMTP id x23mr86085142pfq.164.1558436726678; Tue, 21 May 2019 04:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558436726; cv=none; d=google.com; s=arc-20160816; b=GKdQmy+9QsNJ/sNUFDVB/dBUGtqs6L12Q7nwF2qldB5LLVl84ORobOHRQHQIlymhWZ jo9IgLLnFlj850JEUfirKyUFnMlohCs//MbFtor7Vr94dDf55PjHcLPvFeVIbcTcYGQc ZZymhWFyGVebbKsusqXeRDkyb6kWKrtzc8YDo0x3nyR119vJFFWYVx0O5dnaBnFCkeVt u7k2QbfYd1A6PeQZFXLSfkCM4hMPkQ38CHhYL6w9BdDowogp3qMN0WXmRYLEbA6zKMV2 3G1lMcq8ND0AeGUDEvVaAhe8vHxyV81iBcooo0hsW/tp5FkP4QS07Lw+LKMu5cFQJHTp jJ6g== 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; bh=tVZ1tFnofzDOshXJ55p2YIxYyc5VRLW0cEuiG1ZNDek=; b=omtnzXEzH0466tFJZg9qu6OxaZpKe6sVVdidHngtyUi6tnRF5zNMtXlKQ6ZHqGMrIr x772GBLebesKanV+9oRe6hChrrydsUqBwwP5v5Sb6ENr1/IjRBcrYt3GhpfSz7c/KAQo jIYZUfZr2FpAuN4fBMGGLjclYKQzAP7opyeFiJdviNulX98XXG8IvCxOZSztb6NDHJO0 JIcKq0Bh7RGvl1EcZxv+VRWmqPv59cUoikGXKMTypRqqLAHvh2HBXnHOt8QlqSTLQj2c QlJGlZLcbDXNqq7nMEqOy838C/f8Wi6wsaLyVvwJ0zBfbpAKXeqGXvGplpac5EPRfjkK H7Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ihR4sLB+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si21364304pgi.432.2019.05.21.04.05.10; Tue, 21 May 2019 04:05:26 -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=pass header.i=@linaro.org header.s=google header.b=ihR4sLB+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727783AbfEULEC (ORCPT + 99 others); Tue, 21 May 2019 07:04:02 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:44321 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfEULEB (ORCPT ); Tue, 21 May 2019 07:04:01 -0400 Received: by mail-io1-f67.google.com with SMTP id f22so13518363iol.11 for ; Tue, 21 May 2019 04:04:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tVZ1tFnofzDOshXJ55p2YIxYyc5VRLW0cEuiG1ZNDek=; b=ihR4sLB+Kcp5BjrhDZHbUHYi2I33+G3zsEL7+TLDz8Y7qWAJ6TdjzbQk2F+OSvOM1A GLIa2qJAZhBQZ9VZwMjjj3E45vPjlkcUCpN6i/oYE7jp19uqCloRgvG1a6iAmErAWRgE Qebj/ChBVrQbBUZg0ohqVfL9DyqylRQYV9NQNal9pXz9TXgpd8sF8qjgc21GP7N6zHeG FYb1QS5bhZgssSibeUx/tIQkitHUx5vKhoE2slQG2BN9Wmt2paYn5C4O2aKpZelG1qwW AwPwcL8iGMce28BZ/P2CtfAQNd9d3mCbLhtcxCDemp2dZnA6XZEwzQ1NEAMpidVJjVuo 6mtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tVZ1tFnofzDOshXJ55p2YIxYyc5VRLW0cEuiG1ZNDek=; b=DcCC2NDXXGiXxh2YSSuLfB6QNjaIk2dwZvNsxNcHIjjWSBa6VkU242saA8UP2nMfcz io7D58aTOM/HU/d//Jm44KbCGMzuAS3shIM4VQG++21ZKa62yLVhahXDkWz8/Q+ZJWwS n8SCTSGAg++S9O6wB+7ZRQVn+EIt1QOcDbxvxpfOnXnH3N0HJp9/j2E4LOf8UW39l+/U aZP0sgj943AkNKJ8l2z9aP2UlEfQ2wDG64hktD03GRjjknujq5+DaVEv7of9uVdN2SfX uhVGjfYhp04xP2w0TH/h4DakhY0V+m7uTjD3zaYRvA5vTMSKpsFIA3bEJrdkc7qRKn1w pM5g== X-Gm-Message-State: APjAAAUQiywKdGjE/64bxSO1R9DW1FF4LlqiKq9RJ2ijG/4CHn7PRQD9 fh3OXdZb4x2xPBGlbfSMC4zJcSa8Qzc= X-Received: by 2002:a6b:da11:: with SMTP id x17mr1436692iob.78.1558436639911; Tue, 21 May 2019 04:03:59 -0700 (PDT) Received: from [172.22.22.26] (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.googlemail.com with ESMTPSA id q24sm6851957ioh.31.2019.05.21.04.03.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 04:03:59 -0700 (PDT) Subject: Re: [PATCH 1/8] net: qualcomm: rmnet: fix struct rmnet_map_header To: Bjorn Andersson Cc: Subash Abhinov Kasiviswanathan , arnd@arndb.de, david.brown@linaro.org, agross@kernel.org, davem@davemloft.net, ilias.apalodimas@linaro.org, cpratapa@codeaurora.org, syadagir@codeaurora.org, evgreen@chromium.org, benchan@google.com, ejcaruso@google.com, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20190520135354.18628-1-elder@linaro.org> <20190520135354.18628-2-elder@linaro.org> <81fd1e01-b8e3-f86a-fcc9-2bcbc51bd679@linaro.org> <20190521030712.GY2085@tuxbook-pro> From: Alex Elder Message-ID: <25b1d768-d492-08a7-b1ab-d3d022b01bc9@linaro.org> Date: Tue, 21 May 2019 06:03:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190521030712.GY2085@tuxbook-pro> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/19 10:07 PM, Bjorn Andersson wrote: > On Mon 20 May 19:30 PDT 2019, Alex Elder wrote: > >> On 5/20/19 8:32 PM, Subash Abhinov Kasiviswanathan wrote: >>>> >>>> If you are telling me that the command/data flag resides at bit >>>> 7 of the first byte, I will update the field masks in a later >>>> patch in this series to reflect that. >>>> >>> >>> Higher order bit is Command / Data. >> >> So what this means is that to get the command/data bit we use: >> >> first_byte & 0x80 >> >> If that is correct I will remove this patch from the series and >> will update the subsequent patches so bit 7 is the command bit, >> bit 6 is reserved, and bits 0-5 are the pad length. >> >> I will post a v2 of the series with these changes, and will >> incorporate Bjorn's "Reviewed-by". >> > > But didn't you say that your testing show that the current bit order is > wrong? I did say that, but it seems I may have been misinterpreting what the documentation said, namely that "bit 0" in the network data stream is actually the high-order bit in the first byte. I did definitely see that bit 7 (0x80) in the first byte was the one selected by the "cd_bit" C bit-field originally, and I believed that was wrong. The other thing I can say is that I never see that bit set in my use of the rmnet driver for IPA. On top of that, the pad_len value is 0. Given that, either bit order works, because the whole first byte is 0 either way. So it turns out the testing I am able to do is not adequate to verify the change. I am hoping that Subash has an environment in which QMAP commands (with the appropriate bit set) are actually used. I'm going to wait a bit for him to confirm that, but at this time my plan is to do as I said above--remove this patch and adjust the ones that follow accordingly. -Alex > I still like the cleanup, if nothing else just to clarify and clearly > document the actual content of this header. > > Regards, > Bjorn >