Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932473AbeAIEsT (ORCPT + 1 other); Mon, 8 Jan 2018 23:48:19 -0500 Received: from mail-by2nam01on0078.outbound.protection.outlook.com ([104.47.34.78]:4096 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932329AbeAIEsS (ORCPT ); Mon, 8 Jan 2018 23:48:18 -0500 From: Appana Durga Kedareswara Rao To: Vinod Koul CC: "dan.j.williams@intel.com" , "michal.simek@xilinx.com" , "lars@metafoo.de" , "akinobu.mita@gmail.com" , "joabreu@synopsys.com" , "mike.looijmans@topic.nl" , "kedare06@gmail.com" , "dmaengine@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2 1/4] dmaengine: xilinx_dma: populate dma caps properly Thread-Topic: [PATCH v2 1/4] dmaengine: xilinx_dma: populate dma caps properly Thread-Index: AQHThF33WrKalX9l5EWNOde69xcPPqNp0PuA////B9CAAG1tgIAAAo7AgADBmQD///894A== Date: Tue, 9 Jan 2018 04:48:10 +0000 Message-ID: References: <1514961731-1916-1-git-send-email-appanad@xilinx.com> <1514961731-1916-2-git-send-email-appanad@xilinx.com> <20180108103845.GE18649@localhost> <20180108170655.GJ18649@localhost> <20180109044858.GN18649@localhost> In-Reply-To: <20180109044858.GN18649@localhost> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=appanad@xilinx.com; x-originating-ip: [182.72.145.30] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR02MB1692;7:F3kbDdvi9HnfgbCyPjdN7FCvw8yRTWyKaUYX+XblSGSuaY1A8+MQXGRKzizJNT95N6MkNDtleyOBXAxTFnx2ha2uEIyBvFBL3s9/ie5L5uS3lVRrdyKu3/Get1IWrtUct4Qk9V0A3jaCle1KQH6Wx2TzHu9Rp5jaeIZXQ0zFX+bUWZYb4u/HlzzeBeG7aB6Ac5whUUGb7RVs+lVQ3gQ6+lgz0SfjHTsqAITylp9qC8pBBxE4HhHjTNSn4eq6AU7o x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 3d395676-6853-42c0-eb5c-08d5571c2f1c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(3008032)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7153060)(7193020);SRVR:CY1PR02MB1692; x-ms-traffictypediagnostic: CY1PR02MB1692: x-ld-processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(84791874153150); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041268)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(6072148)(201708071742011);SRVR:CY1PR02MB1692;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR02MB1692; x-forefront-prvs: 0547116B72 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(366004)(376002)(39860400002)(39380400002)(189003)(199004)(24454002)(6246003)(25786009)(55236004)(229853002)(102836004)(6436002)(3280700002)(54906003)(3660700001)(6506007)(2900100001)(7736002)(81166006)(2906002)(97736004)(86362001)(66066001)(8936002)(8676002)(33656002)(305945005)(4326008)(316002)(77096006)(106356001)(105586002)(81156014)(39060400002)(99286004)(76176011)(6116002)(53936002)(3846002)(55016002)(7696005)(74316002)(93886005)(6916009)(9686003)(966005)(478600001)(68736007)(14454004)(7416002)(6306002)(5660300001)(2950100002)(422495003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR02MB1692;H:CY1PR02MB1692.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-microsoft-antispam-message-info: bIrveYlWZlR8AVj0Q5V8AmPBCLBXV+6hMaAE0YtoLQqokuW29Ss9tCq4OAIn2K4HOPXyiFvXmoMk3goNw4y7UQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d395676-6853-42c0-eb5c-08d5571c2f1c X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2018 04:48:10.2043 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1692 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi, >On Mon, Jan 08, 2018 at 05:25:01PM +0000, Appana Durga Kedareswara Rao >wrote: >> Hi, >> >> >> >> >> + xdev->common.dst_addr_widths = BIT(addr_width / 8); >> >> >> + xdev->common.src_addr_widths = BIT(addr_width / 8); >> >> > >> >> >Do you not support trf of 1byte, 2 bytes, or 4 bytes wide transfers? >> >> >What is value of addr_width here typically? Usually controllers >> >> >can support different widths and this is a surprise that you >> >> >support only one value >> >> >> >> Controller supports address width of 32 and 64. >> > >> >Then this should have both 32 and 64 values here >> >> Address width is configurable parameter at the h/w level. >> Since this IP is a soft IP user can create a design with either 32-bit >> or 64-bit address configuration. > >and not both right? Yes not both at the same time... Axi dma controller can be configured for either 32-bit or 64-bit address... Regards, Kedar. > >> Currently we are reading this configuration through device-tree (xlnx, >> addr-width property) >> https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git/tr >> ee/Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt#n19 >> Based on the h/w configuration setting the dst_addr_widths/src_addr_widths >variables in this patch. >> Please let me know if you are still not clear with my explanation will explain in >detail... >> >> Regards, >> Kedar. >> >> > >> >> addr_width typical values are 32-bit or 64-bit . >> >> Here addr_width is device-tree parameter... >> >> my understanding of src_addr_widths/dst_addr_widths is, it is a bit >> >> mask of the address with in bytes that DMA supports, please correct >> >> if my >> >understanding is wrong. >> >> >> >> Regards, >> >> Kedar. >> >> >> >> > >> >> >-- >> >> >~Vinod >> > >> >-- >> >~Vinod > >-- >~Vinod >-- >To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body >of a message to majordomo@vger.kernel.org More majordomo info at >http://vger.kernel.org/majordomo-info.html