From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932934AbcBIQTi (ORCPT ); Tue, 9 Feb 2016 11:19:38 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:57628 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932711AbcBIQTe convert rfc822-to-8bit (ORCPT ); Tue, 9 Feb 2016 11:19:34 -0500 From: "Karicheri, Muralidharan" To: David Laight , "Strashko, Grygorii" , "netdev@vger.kernel.org" , "David S . Miller" , "Arnd Bergmann" CC: "Cooper Jr., Franklin" , "Nori, Sekhar" , "linux-kernel@vger.kernel.org" , "Kwok, WingMan" , "N, Mugunthan V" Subject: RE: [PATCH] net: ti: netcp: restore get/set_pad_info() functionality Thread-Topic: [PATCH] net: ti: netcp: restore get/set_pad_info() functionality Thread-Index: AQHRY0HyEsE5BxsP4kuckjoJY9N88p8kJgwA//+7meCAAGUigP//nMVg Date: Tue, 9 Feb 2016 16:19:17 +0000 Message-ID: <3E54258959B69E4282D79E01AB1F32B704D12B40@DFLE11.ent.ti.com> References: <1455026303-17014-1-git-send-email-grygorii.strashko@ti.com> <063D6719AE5E284EB5DD2968C1650D6D1CCDBFCC@AcuExch.aculab.com> <3E54258959B69E4282D79E01AB1F32B704D12AF4@DFLE11.ent.ti.com> <063D6719AE5E284EB5DD2968C1650D6D1CCDC14B@AcuExch.aculab.com> In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D1CCDC14B@AcuExch.aculab.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.247.5.50] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Murali Karicheri Linux Kernel, Software Development >-----Original Message----- >From: David Laight [mailto:David.Laight@ACULAB.COM] >Sent: Tuesday, February 09, 2016 11:10 AM >To: Karicheri, Muralidharan; Strashko, Grygorii; netdev@vger.kernel.org; David S . Miller; >Arnd Bergmann >Cc: Cooper Jr., Franklin; Nori, Sekhar; linux-kernel@vger.kernel.org; Kwok, WingMan; N, >Mugunthan V >Subject: RE: [PATCH] net: ti: netcp: restore get/set_pad_info() functionality > >From: Karicheri, Muralidharan >> Sent: 09 February 2016 16:10 >... >> >In reality the 'pad' fields ought to be renamed - since they aren't pads. >> >Perhaps they should be a union? > >> No. At the end of the descriptor, host software can add scratchpad >> which is not modified by the hardware, but is used by the driver. So >> please don't rename. > >So comment in the definition that the hardware doesn't modify them. >The driver is defining these fields and they are definitely NOT padding. It is scratch pad, not padding. Looks like pad is a confusing name. Can be renamed to sw_data to be in sync with spec below. The hardware spec from http://www.ti.com/lit/ug/sprugr9h/sprugr9h.pdf The other SW data portion of the descriptor exists after all of the defined words and is reserved for use by the host software to store completely private data. This region is not used in any way by the DMA or queue manager modules in a Multicore Navigator system and these modules will not modify any bytes within this region. Murali > > David