Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp667070rwb; Thu, 18 Aug 2022 10:03:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR5LZGLY89rcmmTWZqMlF0wL8FnG/RQuLQdXI4QcHmoGVrW0NmbHARYh6GmB5O9gRtvZpaKF X-Received: by 2002:a17:902:690a:b0:172:b2d1:7a6b with SMTP id j10-20020a170902690a00b00172b2d17a6bmr2759936plk.1.1660842187208; Thu, 18 Aug 2022 10:03:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660842187; cv=pass; d=google.com; s=arc-20160816; b=sxC0+CjSSbnxGRackziI3AHfmqWEiLkaWCuRErJSYd7Nx20sBLOIYoXhDznZTptPaZ VrHBPFKq5fayi4vdbQugjSe6pELjpiK0kVLdKMm79K9MlQPw3qHxHw80PKM4TVQiuqMe WH2z4FZBzd+KQ361pENC0PLlASbED+EGDTPXkmY0oFQw3RIfPREqWc9DdJtUAZrADJFI p93gJMdS2JrVIQs0O09oCGQBQB+uMBSvmaVaj4nLYZhxEPDjI87R6MYmj2MxaTpphV8S 1OMYDOR8gYEBj7z4QG9LirMY5mFvN8VkzuGPLUOt9gcpOU8BZYVXqJ9XCMdtFaNGvnwH v/Kw== 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:cc:to:from:dkim-signature; bh=RexA9UBwVptnBTZ756vdkTdcdjUKUCirC2b7ScB3lBs=; b=SZgqF4lCMub34Tqa6f7IkPZgGk4sYobbt/ZwnlBCtGHCT0DWgxbfDDCAzEijJPpXcU jibGh9VqdnQrptcFIJ3Ii2tg3WLrUAvbfX+bIjKwcNZJyGrlJ4/BGzHWJhggsVAA0duL XD/2glvSjjZwz6u4oGO26OLRICsiCjH+Wlx/YPefwo3QHr9w4WFHZSRXFBvenR3BDkkT cK2RTClxkd8cxXlfTrqYmTSxxZXWZ+xJI5Q85+LxITsOhitBLZEuThveYcqKYY3Bs6sJ S4yIY6UWaUS8FDpibetPmdB1jeXav7WxAvbQfpEsUMZeufttZauSc17xqArkq10YJ1Hz T51A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=hVvukwZT; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a636207000000b0040d848967b1si1852498pgb.247.2022.08.18.10.02.46; Thu, 18 Aug 2022 10:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=hVvukwZT; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344883AbiHRQlG (ORCPT + 99 others); Thu, 18 Aug 2022 12:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344881AbiHRQlC (ORCPT ); Thu, 18 Aug 2022 12:41:02 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2050.outbound.protection.outlook.com [40.107.223.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5ECDC00FF; Thu, 18 Aug 2022 09:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FrfSQ4dINPXFS2PXRjxWVBALKWAcd3eimlt8xfnTsY2BapxeevSL5QujanqzQ1G2XhHZpQiKPbobUt8FLNjHevCXgqzm21iBRaSr3M3KFgRKQgKIlXNYyv5HUkhFqulIyF/QiyhUhBfTOsL91TlgRwsne2Y0fw2VSCO3fmEwV4ePbsfDIhTrS1DgBE1B4GoYugLDierDMNy4qFdKg8kd2EJEvyncKCH51h9r0ucj8Y+X69FQchFzkc1p7ltvZGxCo6d/DElOZUg6enRIRZ9LOgjCRnv86COrJC4kQz5S6Mk6W0OvnqlTBTkjX+l0okA6eKYp7A0p/zvtjJvGEBQ4Ng== 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=RexA9UBwVptnBTZ756vdkTdcdjUKUCirC2b7ScB3lBs=; b=K6HAASJ6pUFw6g8P2zQt2RWnpZzzaKC5+T7wO8MW2JWM5G0lMcxhiUVjHqu4JR4eM+lHFEEQzqCg2O8+ERYufV0eQ6p9OOk85jis14vn/LQ7yPKUQb4mRcQspYiaubWRDf3ZGB2wqLIwU7Eok1j5+in28vw6cr5GgLoMGYiUuwRxMwXTbVww8G7eCJAA4XkVyx/x8Y6KSYiTQTaxc0K0e3j+/EsHEtuEfuwuMIxxWyasB3GmTFpwR++ToR00cEDB1WXgj391gjtn6aj87V102BaMSTaI+6ULgp2WAOEMpYzQgPGnh60R7HkxqCGDUzVsDH+7sESSvXroriO8AXSiYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RexA9UBwVptnBTZ756vdkTdcdjUKUCirC2b7ScB3lBs=; b=hVvukwZTytRnEX1O6CAYTHJGkpbuc0ez98DAZPzUE76UgivJk0/8ydoARNzcRusnj2FXjt4M67hVGm+3IfQktbOcijQV+LAqc51tBUL1nBsYRYjY84GtC5oY7jl4MOmnc/BkBKy0JzCGnLEMhl71t0Redenq6S/asJ/OKorync/EsoqSUNbqohplsoqO0P9WQHRt85faYRpfE2QP28h7NQXNe8I8Q/AqSeYoS8WrS8eRDFV/bsNaAjrCz01FzbinyXmtKrLCL+ysEE/j5f9ykozNQROtgrodWVQUvIT9CxCErYlkT5u7742LVu7rWk3ocz2q2eqfM8/O3Rb8ZuV7YA== Received: from CH2PR12MB3895.namprd12.prod.outlook.com (2603:10b6:610:2a::13) by BL0PR12MB4675.namprd12.prod.outlook.com (2603:10b6:207:35::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.16; Thu, 18 Aug 2022 16:40:54 +0000 Received: from CH2PR12MB3895.namprd12.prod.outlook.com ([fe80::25d3:32f3:4be5:da11]) by CH2PR12MB3895.namprd12.prod.outlook.com ([fe80::25d3:32f3:4be5:da11%7]) with mapi id 15.20.5525.017; Thu, 18 Aug 2022 16:40:53 +0000 From: Asmaa Mnebhi To: Wolfram Sang CC: Wolfram Sang , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Khalil Blaiech Subject: RE: [PATCH v1 4/7] i2c-mlxbf.c: incorrect base address passed during io write Thread-Topic: [PATCH v1 4/7] i2c-mlxbf.c: incorrect base address passed during io write Thread-Index: AQHYscMo59o17RgFDU6O7GkYAYNjea2020kAgAADfQA= Date: Thu, 18 Aug 2022 16:40:53 +0000 Message-ID: References: <20220816225412.9095-1-asmaa@nvidia.com> <20220816225412.9095-5-asmaa@nvidia.com> <20220818162728.lnq5y7qzxbdsyexr@the-dreams.de> In-Reply-To: <20220818162728.lnq5y7qzxbdsyexr@the-dreams.de> 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=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1111da6e-1ec9-4205-85f4-08da81386af4 x-ms-traffictypediagnostic: BL0PR12MB4675:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tMbxaeUVoFV1LDBo7qgxg4L5u3dblU4NaVEiAwQfOaZ5zSNIUYLusyqpJo1Et7KNOZ3iDN2ozdXdSak6JcWlxqDnhsIUlFQWEJfCtNTzm3/ppzCp373AQ9A8QIU4seJNyjhhVdd4M/GJ7oP34RBuL0Z+D+S6mu1cd2rxIONobVkxxUK//yUK2YPzQ/DH+uHVP0OCa+P1hXMeZj7szKgOYgZCWqT9MDRl3pWdOikqBeJtUiVrIw41d23AwZfh4B+M4MJGfGOCxt/l41as04ig9CWkEH6i9EZ1Argd45GxKXZv13/GjFPKcisTKdzfLrFtVkxj78V/qhc3ADv//zGPAhfSl8Nng/Islshq6/FPooINuCbUMyl2TAsw2qZux/gpgZyUiuoQWMkLM/7muVUtzFrEcfksqFxgPp7CoD+Ws3l11qtBl7eyOM/8Rwo3865zAUsif3ri9yM8ranvLcs9Xl6Cq23g4+tq4rrA6YXda6T8e4iCHN0InbwdvCXYsGqQCPgPTw2iV2kyAMYdbAqpRFQUJIi6+xauZvxxORHLvFPH8ngZCp7uzBit3YtNp40FdFY0D+CG9mBJMjd0lGEk0DIvo9UFextVQ1+N8HJqmxfbh7pK2Ydjdas8BLnex0/9CoGO7Jrtey3AhNNnaQvgya/nBA3SiyLrTTuPJt4bn5k7FEGLjJxNT+xsUa1xmKeTZ/OaIGH/85xhTV7sZ3ocoChJZ9YajUAGCKxxWZFeiu8gu3G1SEjNMC8ijh5hPhXB4hWbvf9EeID857XmjKKEjw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR12MB3895.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(136003)(376002)(366004)(39860400002)(396003)(53546011)(38070700005)(6506007)(26005)(7696005)(38100700002)(83380400001)(9686003)(6916009)(54906003)(122000001)(316002)(33656002)(8676002)(76116006)(66476007)(66446008)(64756008)(66556008)(66946007)(5660300002)(52536014)(8936002)(478600001)(41300700001)(107886003)(2906002)(186003)(86362001)(71200400001)(4326008)(55016003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2NbqhvUosvph9S0Qs4oLy53ZiPQWrRUCg3Ieoykm2Txudm80p5Vq94dAurUZ?= =?us-ascii?Q?X38CxiNwWwSHicdmf+bbdRov3quUZp+ssmh/+VtEVsofF6JtagCDAsesQv3Q?= =?us-ascii?Q?nxDBSb39wmv45GvJT76mDNQuMDfrRKbTDQYQreQJ9SsKro9CB0Pb9ncbM1je?= =?us-ascii?Q?dZ8YpkOF6mD1uvKUnjkfdVt88m7w2l6RNx5/9tl0ShMT6LoCGwfocc1CMd1c?= =?us-ascii?Q?lPGLxB9CPwe4vTeMxorDPPULnr0q3+4hP9T5tdGACIV0FbioPiOyntX9cmRJ?= =?us-ascii?Q?xNK9wpkY5DenLycb9IhJ3R33Ae5SerzX+NT2KPRSAHFMqJb8kxEPDDqtrnu0?= =?us-ascii?Q?tHJUmKTZfHsobXbDVZRomguPONjshgA7y0PmapnFACJ0G66W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q?xeFes78QofUKDMXIxsCxN1/Ezk9fGq6K487JAIVTfrDlPrUaiVkYb782qGB1?= =?us-ascii?Q?PrUJq+1IHcJrPbEeOWSUz1Y1feelP+C7aUu+XoO6tYVzB4MSPisqUvGPjJnw?= =?us-ascii?Q?qt7gzia/SKFfgL3ULK/HiHIkI9O+XHyrONSPPrDG+89C/oaTo78qVOisTPVo?= =?us-ascii?Q?GUX3XVlOszXKwgT+M32lCgacjNWWidHL34GAdnnonZZukPn7DLyPo3qYY9Ck?= =?us-ascii?Q?B8k68LVw8CHjxyaS5dNhoTT7AgOxXDY3VZrz5VrqANZ86mYJBPDZ1eCzd82d?= =?us-ascii?Q?g7YNzjQJNbjdNvtOgl8=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB3895.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1111da6e-1ec9-4205-85f4-08da81386af4 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Aug 2022 16:40:53.8283 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: B9EvXdIAczvZPvpFAhdAeEqAowczBNz60Jib/4c9PtvcLU7Ve2c8SJV4xt5E5AKVaBYFTfI4KjUha59g275Ntw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4675 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It only worked on our first generation of BlueField (and we were lucky I th= ink), not in BlueField-2 gen. -----Original Message----- From: Wolfram Sang =20 Sent: Thursday, August 18, 2022 12:27 PM To: Asmaa Mnebhi Cc: Wolfram Sang ; linux-i2c@vger.kernel.= org; linux-kernel@vger.kernel.org; Khalil Blaiech Subject: Re: [PATCH v1 4/7] i2c-mlxbf.c: incorrect base address passed duri= ng io write On Tue, Aug 16, 2022 at 06:54:09PM -0400, Asmaa Mnebhi wrote: > Correct base address used during io write. So, the driver never ever worked? Or were we lucky that it worked somehow? >=20 > Reviewed-by: Khalil Blaiech > Signed-off-by: Asmaa Mnebhi > --- > drivers/i2c/busses/i2c-mlxbf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/i2c/busses/i2c-mlxbf.c=20 > b/drivers/i2c/busses/i2c-mlxbf.c index 39051c4a6db2..02ed6983c35c=20 > 100644 > --- a/drivers/i2c/busses/i2c-mlxbf.c > +++ b/drivers/i2c/busses/i2c-mlxbf.c > @@ -655,7 +655,7 @@ static int mlxbf_i2c_smbus_enable(struct mlxbf_i2c_pr= iv *priv, u8 slave, > /* Clear status bits. */ > writel(0x0, priv->smbus->io + MLXBF_I2C_SMBUS_MASTER_STATUS); > /* Set the cause data. */ > - writel(~0x0, priv->smbus->io + MLXBF_I2C_CAUSE_OR_CLEAR); > + writel(~0x0, priv->mst_cause->io + MLXBF_I2C_CAUSE_OR_CLEAR); > /* Zero PEC byte. */ > writel(0x0, priv->smbus->io + MLXBF_I2C_SMBUS_MASTER_PEC); > /* Zero byte count. */ > -- > 2.30.1 >=20