Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3200737pxf; Sun, 21 Mar 2021 23:44:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyslSgny0qIVEODHPVGeUK/6Htd0PNC1hzlExUyvKYiY9Ja9sxIsS+uU7GLNCtfAKILJ6ck X-Received: by 2002:a17:906:b20b:: with SMTP id p11mr17970904ejz.0.1616395455096; Sun, 21 Mar 2021 23:44:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616395455; cv=pass; d=google.com; s=arc-20160816; b=QL74dLdGqXF0/ccX160WhoDE8NR+KCKM+hLrvqtbKxBdKWFkNwja8FKPYk5gKmip2p cUdc/m3RKy9XlryqxKq1gq8A5ZMdwgbSn5+sPXMbBTrCZ08uDFZQaXlwPvOT4RLzyG2H HDC3sAbEpTVAU4s1auL9B2U2DhrRfzAZ07clWf91LVbxcb9bimQUsZWi5o/IlE1ConYF bX6800HTIEvTPpPACXHmDekSb+83wXlRHyIpYZWZj1NKsgUq/b3schXjj08GXSXDVA+z RxRW3NOdRZKJBaO34zYxyYXLJqB2UgM4kdsIhAmy8x41SzDBksKRzIdOleTFGKpvjway hnjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=E9ihVTUEsfydKWW7453X0txS9H3ABoU8eNY5tRLrmOo=; b=E3rMKKFC9P0mmhXJ1PJNtj4KMgj3db+5VYeJeYzhuEFen/sUUupJ3D9IP7gJgfQYlg 7xBG/HeD8xDtrbqsOs2SoVmlrLHWl19K5vo2zjAw5SNgKVY4sOTz6TXHmP4RNNdiz9tt Ly0FbOkikADk0po+CFGa2Uvkf0Dc07BL4A6zW7FzDjkjS0Nrzugr7LvwlMq2FCCQ1zRE AoSPfJoIEOBzKe1/R8bMOWy4d2G0vIhbqgarVL2tTnRQECmpSbuwQyUeePIbzhgcNQzw wSdxz15vMdNHSXTsvF8kKcnpU5uCMZ5rgPXwZbrFmHfNvYKo3Uq/5s4xs0PfQrF0VEmR /0tQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=5OZpjRSm; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si10298920ejv.112.2021.03.21.23.43.53; Sun, 21 Mar 2021 23:44:15 -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=@amd.com header.s=selector1 header.b=5OZpjRSm; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230247AbhCVGl7 (ORCPT + 99 others); Mon, 22 Mar 2021 02:41:59 -0400 Received: from mail-bn7nam10on2055.outbound.protection.outlook.com ([40.107.92.55]:24806 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230228AbhCVGlU (ORCPT ); Mon, 22 Mar 2021 02:41:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L/Z69NFBh7HaGdkWgSdqHOfkk1GkxGd4k78RivI1xctAj5ug7mxtLK79GCdbzW2XqDQ3N/gf9F6W3lxDEQnNRd+ham98hKRxity8OAmyMX36aygKikZj4ZTklY8CDzgEqYJMXMrMjaw9I9vMFkCAjF8kOgDYsd1XKrMZZ7mqwoTQVpZVz4cRDpQHiucNR3jTHgWWTIg1uFGMKL7vC4zXqf295hYW4B0DpEB8lXN+C9b77eUHOoQANenO3cnZVkyE51sOOaH7KEc8+NwqI9hMjDZJ4cOfXeHkZyHSCBmCeTuFQc1DDcLiw+Toqf1AkIVmriqURGFVo/AnvClSL8+Xuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E9ihVTUEsfydKWW7453X0txS9H3ABoU8eNY5tRLrmOo=; b=QiVC3QiTxx5e5AVKOOgslHqdS8YNIPiU8cAOFjI8jvhhdkyo5WNr/ANsvdqydW9npC+ivLsbFIeIX5PFCBCofEsEDv3AhsdFAYK8qeUw5qs94GxUFXFoxl78fYkOIK5+XEc85RGW2y7e7BalkARjWjbvUS10XZF8WPs8Wh3XyMDLyPsz9lV5JPdp9+zE6WDe6tP/u82qtipL5DCy0Vnhxd0MZIIVkEg21E1zZrOKXx2oUgmEG+kVaHhf2i3CN8F13sPYQD5Inw1VLPU1Q27z79GIkf7FkHhq/Lt5svU22QRtB1/mqFScfNvklisseE85b5SATDGsx1f/PTBXwqxsZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E9ihVTUEsfydKWW7453X0txS9H3ABoU8eNY5tRLrmOo=; b=5OZpjRSmgH6XxXhQRlEgzGrP8Gfn3a30HHylrDZySXPVxQnbeur0VDdhhlYn1yHKimZA4Aej4uHy0pzMC8etr1ogshTyvYfFAUxSNMyAnakrGYFOZ9UzFg35w7I+AghVZm4tkJQiIOuCN2bnV5sJzp7tyA85V1QfsCOxQ8rt4EU= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from CY4PR1201MB2549.namprd12.prod.outlook.com (2603:10b6:903:da::10) by CY4PR1201MB2503.namprd12.prod.outlook.com (2603:10b6:903:d1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.24; Mon, 22 Mar 2021 06:41:17 +0000 Received: from CY4PR1201MB2549.namprd12.prod.outlook.com ([fe80::e974:eaaf:2994:ccb6]) by CY4PR1201MB2549.namprd12.prod.outlook.com ([fe80::e974:eaaf:2994:ccb6%4]) with mapi id 15.20.3955.025; Mon, 22 Mar 2021 06:41:17 +0000 Subject: Re: [PATCH v7 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA To: Vinod Koul Cc: gregkh@linuxfoundation.org, dan.j.williams@intel.com, Thomas.Lendacky@amd.com, Shyam-sundar.S-k@amd.com, Nehal-bakulchandra.Shah@amd.com, robh@kernel.org, mchehab+samsung@kernel.org, davem@davemloft.net, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org References: <1602833947-82021-1-git-send-email-Sanju.Mehta@amd.com> <1602833947-82021-2-git-send-email-Sanju.Mehta@amd.com> <20201118115545.GQ50232@vkoul-mobl> <5605dae6-3dde-17f9-35c8-7973106b9bea@amd.com> From: Sanjay R Mehta Message-ID: Date: Mon, 22 Mar 2021 12:10:54 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.157.251] X-ClientProxiedBy: MAXPR0101CA0017.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::27) To CY4PR1201MB2549.namprd12.prod.outlook.com (2603:10b6:903:da::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.136.36.172] (165.204.157.251) by MAXPR0101CA0017.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18 via Frontend Transport; Mon, 22 Mar 2021 06:41:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b6c1bc0d-3623-4c31-24bc-08d8ecfd7e7c X-MS-TrafficTypeDiagnostic: CY4PR1201MB2503: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BPUMhVdcPeHTDu9pyFGLPmAZRtKbZR+lteBtKPiXtWsm43Yzyd9h8EfN70ZS2F3v3q6VloJ/kfErRMzDUQD7TsHgreXDFy7f5fMZt+1QfiXot4TsiUgibz44NHScTCPwyNmQN2Lwx2kgRSrtp9PFLypq/sbSAO1/Vve2tX76V3b4+FyJHpFAmTXE664o0JRnYa9e45bj8YVNtWPxWBfrseC9r16+8dzEbEf5Qj2JR0IBFBC0HMJfeFRFNz3mm8mSlf85Hwm6/2+PEU3LrQPLDg4ppZvgae2flBPMjlDqIWGB3FAH0/OG1Lz0Sme6RyIy/BPDZgX+jpc7fStYI8Nowqbe8Ix2S9afD3BwZR5Hjd9f98FmCL6QST9Fct08LsLkmDwU/F/fsv3u/v1HmPRqPGHag8bn199BsvtzsG4+LybwD4trd5Ovf0GHxpTViIupEGRqnTNSYwH2uBlO+Y7xYSGpsWQ1GOaJTmo4cVUPqsFD4VGdHq5EaFJLnyEESxPlviRcZD2GX/8qLZ89wrXdavK2nlXGzC9XFGZzN/8nPARq7vSh3k7X7XCuCfq7s0yQAOTPFPcq9YpSx6bELYKycArgpPgJzCv3mMiJZcr9SmdGjU+ED88l3yNybOPHrT8Ehf/FFpOis8effkJgKOZTfFq+0OGNOzCXx/Ik2kRC1KKjdYYxp/+zSqkoTwNE1W+gW3s0oFJ6MgKyZ/iIVixhI4Y4OK3kbekgSXGpU0+qb5g= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR1201MB2549.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(39860400002)(376002)(346002)(136003)(366004)(31686004)(8936002)(6916009)(38100700001)(8676002)(26005)(316002)(16526019)(31696002)(478600001)(5660300002)(186003)(2906002)(36756003)(956004)(6666004)(16576012)(66946007)(4326008)(53546011)(83380400001)(66556008)(2616005)(52116002)(6486002)(66476007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?M2ZmbDI0d1RXV0FDKzEzV2RoMmxTcUVlSzhDcmpMYURSL1FOUjJta29QT1Ny?= =?utf-8?B?ZUllUGFVZHY5M09CclptRzRUNFRhckxPZmRlTDV6RGQ2ZE9ObjBLZDNtWEpa?= =?utf-8?B?NVNkVER1ZWsrMkN1WVhGcmdmU1BZV0g5cDhNdHMrVTRJQ0RIVnJKSFRNVEFI?= =?utf-8?B?VFZ1MFJSQ1hsbXJQMzdHUSt1UWlTcHFScy8rdCtkWitNekdnK2xObHpNS0hZ?= =?utf-8?B?eVM4ajRoWFIzOVBMZXBPanZVOG1vL3Q2cnZkMGRlUGNPWFRQdGRaNjAyemMv?= =?utf-8?B?STlSOGdHVUNublJxdkY1RmZKcExWQXE3emhZOGY2MFIrR3Rscm5va1pWQ3A4?= =?utf-8?B?Z0djcGNWTVNXV2pzUTBUWmxDZXJaY21MZHhyelJ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ISll3b3J2QVl4RXhaS0puQmE2S3RI?= =?utf-8?B?VGQ2bWh1K3BwNWVtczlHOTlIdlNEdmpmdHUzNXRaSlUwNnhxL2YwMS9EdnFx?= =?utf-8?B?bXFhQnRoWWpsdTVDNzhtRTI1Q296MUEwUGZ0ZU04eGg4N1N5ZzRDcWt1dFRM?= =?utf-8?B?aTVUSHhKdE1uSGpCb1p1RHcxRW5ZUmxJL28yUU1zS0tJUXZMVWUwUExoUERS?= =?utf-8?B?bitsK2hYemZtT2tSMUY4WVhIZXRwaU9UbG0wbFJjVDZrVGs2dW5LSVd2cXFl?= =?utf-8?B?QUloT1BXT1o5eEhvVks2dUNETWdnVjgwQUE4L0RSN0o0U0d1Qyt3K1BEQmcv?= =?utf-8?B?bUNhU1ZZWWQxdC94ZlVlRCtUR0E5dlYzem5yeWZ2SVcwT0ZLcUdRcmFvNDVJ?= =?utf-8?B?L1phRTl6REJMK3h2OGRlT0d2OTE1YVlBYitLdFhIZExjeGpsWVRLQWdSczlE?= =?utf-8?Q?P0kkxRW/KXsZRAcvtkSjAZgyIdtqi0vC61vKAbc?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6c1bc0d-3623-4c31-24bc-08d8ecfd7e7c X-MS-Exchange-CrossTenant-AuthSource: CY4PR1201MB2549.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2021 06:41:16.9559 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: swRQJz6kaFe+1mM1K7m1Oup1+nLHvXfamoJ0+Ed1vvr/dYPOdkKR+98llhndGtKg03n23mIXCnEsuoaK0zr6gA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB2503 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/22/2021 11:34 AM, Vinod Koul wrote: > [CAUTION: External Email] > > On 18-03-21, 16:16, Sanjay R Mehta wrote: >>>> +#include >>>> +#include >>>> +#include >>>> +#include >>>> +#include >>>> +#include >>>> +#include >>>> +#include >>>> +#include >>> >>> why do you need sched.h here? >>> >>>> + >>>> +#include "ptdma.h" >>>> + >>>> +/* Ever-increasing value to produce unique unit numbers */ >>>> +static atomic_t pt_ordinal; >>> >>> What is the need of that? >>> >> > > [please wrap your emails within 80 chars] > Sure Vinod. >> The "pt_ordinal" is incremented for each DMA instances and its number >> is used only to assign device name for each instances. This same >> device name is passed as a string parameter in many places in code >> like while using request_irq(), dma_pool_create() and in debugfs. > > Why do you need that, why not use device name which is unique..? > Can we take this as part of bug fixes series in future? >> Also, I have implemented all of the comments for this patch except >> this. if this is fine, will send the next version for review. > > Am not sure I remember all the comments I gave, it has been _quite_ a > while since the feedback was provided. In order to have effective review > it would be great to revert back on a reasonable timeline and discuss... > Apologies from my side. I understand that I have taken more time. But I assure it doesn't happen again. I have already sent out v8, can you please have a look at and provide your valuable feedback. > Thanks > -- > ~Vinod >