Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp118872rdb; Thu, 5 Oct 2023 19:54:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoz0KAWSU3Zj78zyRuHvRaMKE8LGYyJTgsZukUq3926tnLF/B603GpjP6uRBOAeZERaYtH X-Received: by 2002:a05:6a20:734b:b0:15e:4084:6480 with SMTP id v11-20020a056a20734b00b0015e40846480mr6270474pzc.27.1696560897396; Thu, 05 Oct 2023 19:54:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696560897; cv=pass; d=google.com; s=arc-20160816; b=FyMaxLB3EaYD4UA6qwY3/NyHdNwGIVPfKHTI+LBC8i69AvUkE5jpszz2MlU9Vtfaa9 8hPchpFtPJVr7PAg1fYiq3feKc8cbtEC28FXQSFPae52TcqeVH6k4LBXVYwoIHkWIF7W mXirz93vulsRY4K5VMF8SMAhAXoK4Hei/ecTrc2TEZH/av7LxnE0LBLvBnVf/mUywVzv 61TihcFEqOlwBqLwNlRtBDF2lN4Q6Gyn4gdndIlyemtQnk20QdcH4ICiU/fOhVPHMIOF OfIupn9pLo3GR69+jBHp/CMcsV9h/XCW50wB8jlD6iFB4ZrSRtc5ZQs8rQHSDbZfKEN3 ZSYg== 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:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:dkim-signature; bh=8R2jpvhhNDjQimRPibyeob6fSEVthLL0sUItRIid7tE=; fh=RYfDBk1WDOft4iaEg14SshIztlJNPj54FexcGaT3EW4=; b=TjZlgUO/AaoZBEomng5FIJAugm6cRZFhXex4C/mFgCqoKMEgQczd9P2rmVz08Cm88H LGz7IYONwvrWpA3UnsNU3rdTXQZCzYUsAUBl+xw8ft9POlmtV/PDUJ1obk1gsfPazE/1 5AaEm4TMoLIqxhR4SApLAu0eQ2BDbrRkaF6EHFxiWYvK3+fH8BqJYj7hhUHo9NcUeQvv akXJSm5LSaFGGPWHZxEx0eIR4z461u0ePczd636B1XqC7gk52O724dWRNrbYsvkqoQQ4 MBRw00x/2JejPQMtfgU4Pv4yYuh6L/VO1tctqpBPe4M4MnLZ/kSDDidjxBD4jwEkfr/E NvHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=YW1vNEFa; 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.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id bo12-20020a056a000e8c00b0068fcc84dda7si507052pfb.327.2023.10.05.19.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 19:54:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=YW1vNEFa; 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.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 94E89869EACC; Thu, 5 Oct 2023 19:54:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjJFCyL (ORCPT + 99 others); Thu, 5 Oct 2023 22:54:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbjJFCyK (ORCPT ); Thu, 5 Oct 2023 22:54:10 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2082.outbound.protection.outlook.com [40.107.94.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3346D6; Thu, 5 Oct 2023 19:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CLPUP/85UEQZEehh9yO//ePqM73cdXa+5Xc7oY0CRa+c6myp7wyoT2teF7NXv14j8ogQz07m/5fAUS0QRSlNQqR0klrlQwrRI5XVnkwSBwUmi0h7qjbKthCvryNfbnPGpdjNV7nyL34GmCEunPf2po6FQJQKDm2CYLeb5tbLW1H7U5CqCJkwnti2YSgsmOPcVNr8CzCC7h1MIqgueYcGRWkVABu9RlUU012eKjQfSxUnJi4UQxO/D2Zo6WGaqLPhNjU8lsCtqKKY2yafKqcJmUoteM5JfxE/BmnkEmNx3G1HLaR8EDNLRWNtgmly+cr1hoTrdwLTCTwUexur/i1YNw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8R2jpvhhNDjQimRPibyeob6fSEVthLL0sUItRIid7tE=; b=hC5nbcErQtLIhgD00h5C5bBgMPX4NZWwHxW42Msp1P9JuigH3o3tPdSgb+OgMc7GthZs8wV0nlDzEKl94RbqGFNmhisyBAIyRJ+cVfPxE6mdFyu7MwP8J2o1LM3veEFLjv1mFalMuWzNLMsLuIjqumnkFM5eRryvSD9xHoTq5Mt5UgeUweLJPgb8vZaRpYXIU3iP3p7kmjy1Vd0h9ldSlREHOFaWUxyRpzEMbtQne92JKV8jToY6hj+s52Ws70FHqi5/2QP/SKMyw0oXuNpAIw1BJu3iv31OSwiED1ShCet5Th3pGLayzjOh+uX9bfnign+l21XGQzkp+FuuLJyvsg== 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=8R2jpvhhNDjQimRPibyeob6fSEVthLL0sUItRIid7tE=; b=YW1vNEFax1ZEyoGytxKmGz6hTN5uvObENs8PC3Rb2PMaQY6IrSPZQcAWxsMblleBpO9PpwbFNWhmlj+QJf0c1COhyDtvZaaXS6fTfuEOYtPYxNH/OTIiicNm9XYB7V9ICu7T7yds2VPiJASfSTO7+LLyUhZCDOIRPsn2HRvS4dw= Received: from MN0PR12MB5953.namprd12.prod.outlook.com (2603:10b6:208:37c::15) by PH7PR12MB7282.namprd12.prod.outlook.com (2603:10b6:510:209::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.30; Fri, 6 Oct 2023 02:54:04 +0000 Received: from MN0PR12MB5953.namprd12.prod.outlook.com ([fe80::5e1:64bc:e8da:e22f]) by MN0PR12MB5953.namprd12.prod.outlook.com ([fe80::5e1:64bc:e8da:e22f%7]) with mapi id 15.20.6838.033; Fri, 6 Oct 2023 02:54:02 +0000 From: "Pandey, Radhey Shyam" To: "Manne, Nava kishore" , "mdf@kernel.org" , "hao.wu@intel.com" , "yilun.xu@intel.com" , "trix@redhat.com" , "linux-fpga@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Simek, Michal" Subject: RE: [PATCH] fpga: versal: Add support for 44-bit DMA operations Thread-Topic: [PATCH] fpga: versal: Add support for 44-bit DMA operations Thread-Index: AQHZ9ck4D6pW8hQcKkquQ33NBhhYBbA8FNXg Date: Fri, 6 Oct 2023 02:54:02 +0000 Message-ID: References: <20231003071409.4165149-1-nava.kishore.manne@amd.com> In-Reply-To: <20231003071409.4165149-1-nava.kishore.manne@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN0PR12MB5953:EE_|PH7PR12MB7282:EE_ x-ms-office365-filtering-correlation-id: 12252da9-5d8c-42b1-92de-08dbc6177f18 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: m/mwLYRzJrygqMbUP7wYITw6OG7tqSiUW6/pJAUinQA33qv9xnL3IRrBLyuEza4kNJ0AbieGbqwQaaI8RIyZFMtoaC6U58ME7JETtx7IcW2L3QKTZxWk9SfCRk6koCZsxZMz2+g0s36dpE0ErPEy+k+EeT/+kagpagglkTbwAOKVH7htAHG9h0PGzer+o+XBtcHCD7uSCChhsu7jNEFI5VF6CmSAR5loewoUF36wnwUkyBRW4EEunsJhyovIErGTqdo7SuiKF+Ix0Jgc8WC205AS5o5e59X1zvISImJbL7+4310IpbIvS04Q6kAFmtIWGh6bNL16qYJLIwWuT2A3lWv0hVwejmwwNZ+Ri26gO4YpY/SCwAem/5rA0dwhj9dofpfRqkYkz4i+2Efm4hqUBl0JB2VqhJ7tTn9W29T+RXlX4ErC+sOlLpR73d2m025/Um2agLlFM6i3u956ddu5e2O2+ShwVRC2CKRhPIk1mPEgoEw9TiU/PsQIszkl7EIGBEq/ub8bUUfewxfKGSdb8i+85L3iVXr6+2wxyBCDQ2ghohJL8+zxplR3kd/XH7dTM4OsJy4yPAUYWp8vZnYGm0Gmk4ZKBUPB07EGacex65Mbgo3jJ0xSU0UMmFhnWyucYLVrIW5pY+RLQv3MY/v3Ew== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB5953.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(396003)(136003)(366004)(376002)(346002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(52536014)(6636002)(110136005)(2906002)(64756008)(8676002)(66476007)(8936002)(71200400001)(66446008)(66946007)(76116006)(66556008)(5660300002)(316002)(41300700001)(478600001)(122000001)(26005)(9686003)(55016003)(83380400001)(6506007)(921005)(7696005)(53546011)(33656002)(86362001)(38100700002)(38070700005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?GG/CGYCTr5R64f8ZbvsKWTKdxk7V1Zkj3lkCwxvSEo0XlD3u4iRP7/8prE8C?= =?us-ascii?Q?EedjYVCNMohRhlIKFgF+bxggvl1Xz0MuphJr84GmDQBKYeaPxsM/jp7Snwp6?= =?us-ascii?Q?5ZnR8UNM8S1nNspES4G9k4phYd73QM7mRPA9wIcmfqMQl0Sn0GqW30hH2POa?= =?us-ascii?Q?D5h6pmRn8TpTf4F6ytD1jLtS3l7HH7Ue51iJWyjUw6lNxMwBWML/8dbYJkRx?= =?us-ascii?Q?rHwg2c0fWbT8i+cVUKEuG80I6YGqXrVtAA+h9uJCJ6QQnrCtf1dfGzxbAwnr?= =?us-ascii?Q?zRRo9jv1fs+ucCATNtmMeG2CCdi4JRd7cAdH+iHroQI6vvaLk79qTcQCOIEk?= =?us-ascii?Q?PXh48TWPTaKdkiANdHcBYS9TKXfJjhPSGLNZYTmxrDHexVSe1dfRzg/ugtCS?= =?us-ascii?Q?iXPMhuUCpRwKh1Ejz7j2geaoCBPyg5wxXHdxaZ2Hm3++bjuTlaztWQsz4VhI?= =?us-ascii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ZnJdeE3N8SkV1LkroFDfQIlm/H2gK?= =?us-ascii?Q?M6e6KPg7pibso/36uYJXhxh/+PP+GPbO+Hw7pJYU25fxta/JPb4zZQ9Uurn9?= =?us-ascii?Q?3qcbTT7hRiZvcZvJJ988VtZfGA8ZriIGYFcdydPaC8Jb71zfCmZshXBi7uFY?= =?us-ascii?Q?lAKVLQ9JyqNCHPJ7gkonQf3d/TxYiiSNw3TdZsavgd5vVw2qfdErQ+Q6V7nH?= =?us-ascii?Q?hmB4y3q+80PP+zroMR8=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB5953.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12252da9-5d8c-42b1-92de-08dbc6177f18 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Oct 2023 02:54:02.1476 (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: EFB5F3bBnvWsm9jp4RuaUD9WaUFAwGCY4b0WV5kgXGk10MI/5wNJT/0Anp56Y7Sm X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7282 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 19:54:54 -0700 (PDT) > -----Original Message----- > From: Manne, Nava kishore > Sent: Tuesday, October 3, 2023 12:44 PM > To: mdf@kernel.org; hao.wu@intel.com; yilun.xu@intel.com; > trix@redhat.com; linux-fpga@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Pandey, Radhey Shyam > Subject: [PATCH] fpga: versal: Add support for 44-bit DMA operations >=20 > The existing implementation support only 32-bit DMA operation. > So, it fails to load the bitstream for the high DDR designs(Beyond 4GB). > To fix this issue update the DMA mask handling logic to support 44-bit DM= A > operations. >=20 > Signed-off-by: Nava kishore Manne > Reviewed-by: Radhey Shyam Pandey As I reviewed it on internal list - adding my reviewed tag here as well. Reviewed-by: Radhey Shyam Pandey Thanks! > --- > drivers/fpga/versal-fpga.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/fpga/versal-fpga.c b/drivers/fpga/versal-fpga.c inde= x > e1601b3a345b..3710e8f01be2 100644 > --- a/drivers/fpga/versal-fpga.c > +++ b/drivers/fpga/versal-fpga.c > @@ -48,7 +48,7 @@ static int versal_fpga_probe(struct platform_device > *pdev) > struct fpga_manager *mgr; > int ret; >=20 > - ret =3D dma_set_mask_and_coherent(&pdev->dev, > DMA_BIT_MASK(32)); > + ret =3D dma_set_mask_and_coherent(&pdev->dev, > DMA_BIT_MASK(44)); > if (ret < 0) { > dev_err(dev, "no usable DMA configuration\n"); > return ret; > -- > 2.25.1