Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3236523rdg; Tue, 17 Oct 2023 08:26:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGNzhrNzk48RpzNrc67KB8tNggyVOZQXW7c+1d0r8ZIHGuYxORrOW8oVal9iBBRKVtD2Hla X-Received: by 2002:a05:6358:c38a:b0:15a:e6ac:ee5d with SMTP id fl10-20020a056358c38a00b0015ae6acee5dmr2994441rwb.17.1697556368877; Tue, 17 Oct 2023 08:26:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697556368; cv=pass; d=google.com; s=arc-20160816; b=VdxhdEsAbpRbVgB78NTKQM3yvK2ziAVvppi6RgISpueuldAzBNb6uOsieOWqacHuXz 3vftBLtK8Hp0zaXFFOZpWtirZ1wHI8Qx1b+pixUn2Lwfmrt9PSo3UCJzEiY0Ifu4NGAg oFkoEHvYMgAQXX1pe9kFnFDmIOkBHlGlSNwD8cZnfLY8u/Uwqtf5ocburRik0vy4Ii6C 6DnR+F03Licx3xOH0KTtIyDoi1QOLbQjVmUOeh5S94kQmXf+EzH3hnBX/Pg9Ume4a527 FY3hB1qSmEBZ4VVC0xAroq1Awq8n09Kd5xJUgFFAB8VfIlny9TDIg+Fh4uC7PuYvPvZR bvZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to :content-transfer-encoding:content-disposition:references:message-id :subject:cc:to:from:date:dkim-signature; bh=BhpL+3p/lYUiDJGPKlnyBtBYFV8mchDVP4HqJ9uv/DA=; fh=x1qsKuYWsQ44klU5/Lip2C9Lc9AjvjSXux3CAwX1c5s=; b=n2ZJx24IO957rqGHbN2XMLTwHCNxwjLuCNUqMcO/IYsAY/Qyf11a2wUHJmDkSQdSjd QHIhXf1PFmNGseLNXgvCO8k0Kq6jl8pSnTPLLzDp6K/fHTkrrjm6NI3zPORFkJp7SMpB wcpKbpjdXJl+6fAUARycmEdV/VnSpmWJGOQ+ovRzwhArvtqPUoSxGVZplKxga/ZWtgh1 BndMFK5bPZgAU37Ega7W6zv677ZQOQUYEgkio16+85Ym7/ZH3Wfbq3CB4R2S7GLUqaqz BJ+BHThRf8NiNe8pijWpuXRzDEOc6BXJ6ZMS5njfMe/z3Cp8tWTz5iM4cZDtVvtk6xsN y9hQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=GLvXg4+y; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y18-20020aa79432000000b006be1939f03csi1765184pfo.385.2023.10.17.08.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 08:26:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=GLvXg4+y; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9403A8025ABF; Tue, 17 Oct 2023 08:26:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344327AbjJQPZw (ORCPT + 99 others); Tue, 17 Oct 2023 11:25:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344061AbjJQPZv (ORCPT ); Tue, 17 Oct 2023 11:25:51 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2079.outbound.protection.outlook.com [40.107.241.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 576549E for ; Tue, 17 Oct 2023 08:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TcV1zp2LxqSavayH2ymx2lq/wkA5MttX6t+vvx/akAZ02prYRGuLWFzAOKOO/DhPPTk319XDUHubnTUxMUP4eMdtNZzJxnXf+XdzX1xo0ztTdlrLMGGdkCSzQkYc6yYL4jZFEXrWb34zdsKoAHvop8mVfsliEdaWeRHHjU/FutefwcHdT95s+05Hl7gdUKWlglQOQEUTJbWr7TK+B71gyc/YfpZzr02A+pRZWIoteXdz/8te6v0DXDDQasoP7PTDyRTzUPka8dRPIpjnP23g3tsfHZAY0Hksvs58iDzSSiuTZsDnczX5jgALasCiJtizoP3SFUSEVe9Jy8KW6MQ3Pg== 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=BhpL+3p/lYUiDJGPKlnyBtBYFV8mchDVP4HqJ9uv/DA=; b=k1BRyzs4ykhDRTExn4EetyiWbIsu9EJCuSRmpVCRzhMs1IYGPYiWKpAU1M3vOAFHOSjQSUwwddW1PoNDBl+zbZd1b+8rdTIJ33cQ9BIP4RTqRVPxAXmJ9y5yE1AxYWf2K8Sf5tttYkQMAN3rirnuPRmNGHxghEbjOpGZ80bkcid6QrMgpMA83xbdcUJeYMDBJf1YdqPKT6E2IbdqxaQQnxNWzf6Vkz5kq7vLwgB+eHqsTT19oBgEDfu+ZBvgjZ0iDpp3DyMI68NDZdRh3JuHOBZRmFSE0cFVbPgUVzJJMRDYSmIhcP5eP20YmCmnSijcdTlWuhSw7wu9n2Pe5bXEDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BhpL+3p/lYUiDJGPKlnyBtBYFV8mchDVP4HqJ9uv/DA=; b=GLvXg4+yOUo8kDArRm+5OHhR/6r82gPgsnhQN9mRwgbYZEpRyrVZEbA+oLUG+OkI2yqGbEjpZ30b4er36KlqPEsxRbZn678ARo3JBFTi1JYXU9JkT3RVWaAexjMXRUhHpZRsw59aKMKDtUIUO04L0NR445YSGuhiVme3Jr75pmw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by DB9PR04MB8185.eurprd04.prod.outlook.com (2603:10a6:10:240::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Tue, 17 Oct 2023 15:25:44 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2%4]) with mapi id 15.20.6886.034; Tue, 17 Oct 2023 15:25:44 +0000 Date: Tue, 17 Oct 2023 11:25:37 -0400 From: Frank Li To: Miquel Raynal Cc: conor.culhane@silvaco.com, alexandre.belloni@bootlin.com, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: Re: [PATCH 6/6] i3c: master: svc: fix random hot join failure since timeout error Message-ID: References: <20231016153232.2851095-1-Frank.Li@nxp.com> <20231016153232.2851095-7-Frank.Li@nxp.com> <20231017163335.16770af2@xps-13> <20231017170603.5ef996c2@xps-13> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231017170603.5ef996c2@xps-13> X-ClientProxiedBy: BYAPR11CA0086.namprd11.prod.outlook.com (2603:10b6:a03:f4::27) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DB9PR04MB8185:EE_ X-MS-Office365-Filtering-Correlation-Id: b9b4d50b-179a-4ae3-e4dd-08dbcf2554b6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jmLouNxbQdaCfpRM0iA1PQAjpqyVVYzBbMfGnOZQgIpguW6vabnkkqduwC5fNfBP+0Lt6Fd/R62tHYRPjmzQ4XOgBEqSq8JsNl9/yOaGcscvgNgv1ODGX8vaEjEYX6zk/YPfdTYxOB0RnepTf8BDwApJniO+7RKmRzix/sSTvt8nNW1Baax8IETTpcyWDNq3LvUUHkwZ7hl5gjRsL2+mky9LuExbSFWmRgXEW48fgG5iIlfiIdAeZZPHIvyVHX3NIEjI6OChemZ2c/SdklvX2lvgUxy1Bl/3UOhctWJXmdN0KlecI4vqMaxyC+DZ3yP7kf8aw6K2ykQY69g2e05ABDcGTD/3kLl9el+AV23zggXzd/5axNSOTDJ2RtG7cwCPHKyJrxS50PdGPrM/wNLVNn7LOqcHKoB/7l3pgqqmMkiDGwqB0E8+9x7rNnQ2eSE64Wu5h8sI8ihgCZEOYdFf/rSHqbD3OMV8sHMNm0MuZD+b2oxuXRezoVgYGRnrfcTkemfwCQcM8bhkepsdv1BJwrH1jniTgCPlY0GfoVw9YRcLIwpmZitAzN39ub07cCz5kgbfo0KyDrclFBb+QpRF20GUXuo3m9jzs4ebJGHuK4a6d81fYkbUGety/ex/i4ge X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(346002)(366004)(396003)(39860400002)(136003)(376002)(230922051799003)(1800799009)(451199024)(64100799003)(186009)(26005)(6666004)(66574015)(8936002)(52116002)(6506007)(83380400001)(41300700001)(4326008)(5660300002)(8676002)(2906002)(6486002)(33716001)(478600001)(66946007)(66556008)(6916009)(66476007)(316002)(38100700002)(86362001)(38350700005)(9686003)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?elVhSXVqRnQ5ZTFRMnpvajBQTU1tNmk3YnJ0eW50L2VEOXFRWlZjZ0RhTEhQ?= =?utf-8?B?endwSlcrZGQ2K0VOVENXUzRsUnVjaVpnZ2ZmcGczR0lkbmV3d3JENDlyaGpK?= =?utf-8?B?TW1xQlRETTN5US9pMXU3QXNWOFMyYXhRQmdhemhPUU5zQ1VKR1N1SDNNNk9t?= =?utf-8?B?TENUSVlLR3ArS3g4RGxuSmt3TWxoaGxzcHpPMFlKS0hZbEp4bkdrdTVpV3dp?= =?utf-8?B?TU1BaHo2dzZGWkdDaGd1Rlp4Uy9aTUhDaERQemVGdDBwcFdFaVZBZDlSZ09o?= =?utf-8?B?eTJzME13WVUydlhvU0VEYm5xdTlUaUdVUUpuWkdWYVRMMkQ1UkVxTmI1WHlL?= =?utf-8?B?RUNZeUNUS0JOVXdUQ0k0eFBUV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Exchange-CrossTenant-Network-Message-Id: b9b4d50b-179a-4ae3-e4dd-08dbcf2554b6 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 15:25:44.6186 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 03OhmdVEmqhuInnFDxq2A9SvPTrmdIBKzSPU5boRe4uPXaKgAg0O119z4Uwz5vl1t4vyiFXih+hM0UK18N84IQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8185 X-Spam-Status: No, score=-0.8 required=5.0 tests=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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 17 Oct 2023 08:26:06 -0700 (PDT) On Tue, Oct 17, 2023 at 05:06:03PM +0200, Miquel Raynal wrote: > Hi Frank, > > Frank.li@nxp.com wrote on Tue, 17 Oct 2023 10:45:14 -0400: > > > On Tue, Oct 17, 2023 at 04:33:35PM +0200, Miquel Raynal wrote: > > > Hi Frank, > > > > > > Frank.Li@nxp.com wrote on Mon, 16 Oct 2023 11:32:32 -0400: > > > > > > > master side report: > > > > silvaco-i3c-master 44330000.i3c-master: Error condition: MSTATUS 0x020090c7, MERRWARN 0x00100000 > > > > > > > > BIT 20: TIMEOUT error > > > > The module has stalled too long in a frame. This happens when: > > > > - The TX FIFO or RX FIFO is not handled and the bus is stuck in the > > > > middle of a message, > > > > - No STOP was issued and between messages, > > > > - IBI manual is used and no decision was made. > > > > The maximum stall period is 10 KHz or 100 μs. > > > > > > > > This is a just warning. System irq thread schedule latency is possible > > > > > > can be bigger > > > > bigger than 100us. Just omit this waring. > > > > > > I'm not sure this is the correct approach. It's a real issue but there > > > is not much we can do about it. Perhaps dev_err is too high, but I > > > would not entirely drop this message. Maybe a comment and turning the > > > message into a dbg printk would be more appropriate? > > > > The key is not message. It return true, means IBI/HJ thread will not run. > > But why should the workers run if it's too late? IBI ACK already sent, target think master already accepted IBI. then master driver check TIMEOUT, If without run IBI thread, target's driver will wait target sent IBI. And target wait for driver handle IBI. So the whole system may lock or wait for long time out. Hardware check TIMEOUT and software send ACK is totally async. > > Thanks, > Miquèl