Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp272769pxx; Mon, 26 Oct 2020 08:16:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeMWkpnO2BE8lkhDbgxeNscW9JDiD7PhI6WoEcBLnBSu4R8aaSsJKWDIYCIU+aSHmUTp4r X-Received: by 2002:a17:906:cc8b:: with SMTP id oq11mr16959081ejb.116.1603725401612; Mon, 26 Oct 2020 08:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603725401; cv=none; d=google.com; s=arc-20160816; b=vL5T0RfNCPz0TP6tg3htTU0Iu2qKO1rpRJhQow4UFq7UphbG6yXoGL6G3L+iVcKXkv n3jHWyqNprikxI0mLJIABGfSKdicWFeDrccMExjjH4oQeyxlo/lNpdq3otTIlYaRKbKm Wldlnx792kC02/bUUjdm2ZTo5Mmry3M5etdYFXrqKXoZDgds1xSlxoqlsheJegBHFknF Ps7c0skHlJK5gTYxHAH1pQEeTYaOjekOzss2gqowmiku6UHbSq9UlK/Nz2GS5WZ03gJw AG682epAUnB12AyKw3TFp8j8v+AV/jMDz8IdYxF+B/gYUqiMH2Vf1Q0K3T6/56ae52PX U/kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w+SAlCCuNUPEvCD1GTozNKFdZydsDT6HZxffXa66Wao=; b=eqLMYTIfTKY6spHShmdARw+3jP1g6+aaTh0zCvPUqCzHG6MyAM7JXRXOmFPuMkWzY4 wb/gw4jZga3zQO7flS3XUiBHchPvET3WEHqqkodJRF045Q7UTn4I1pOuFBc+8OUK0r79 WrwmKBk9ebb+FRKQ3ZP0I1fumGIASxAg9kVTFUAcBVQyZjd+pmNCY1q7ErbCL5SsDLuw 29J3U7+ULG8FUvyP8lMTIpjR3n/9BscIOXzWLHaDvy8iHOvGXMFW/eiJSO6yFWYRo5II LKlAaVMK6CGhJrWDibPXrOLE3qztMQxl1x9CfGm0oM4sAGGHac2cvR5ym8SoJhrXlC6r o3jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=BbNuSHwa; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga3si1775596ejc.703.2020.10.26.08.16.17; Mon, 26 Oct 2020 08:16:41 -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=@broadcom.com header.s=google header.b=BbNuSHwa; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1783407AbgJZPNe (ORCPT + 99 others); Mon, 26 Oct 2020 11:13:34 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35483 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2443789AbgJZPNd (ORCPT ); Mon, 26 Oct 2020 11:13:33 -0400 Received: by mail-lj1-f196.google.com with SMTP id x16so10595343ljh.2 for ; Mon, 26 Oct 2020 08:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w+SAlCCuNUPEvCD1GTozNKFdZydsDT6HZxffXa66Wao=; b=BbNuSHwapUdnU5TYgoNpk5iv6dU6vQhALkA3URXsZhfAJTvFSh1KzzR9T4OZJANiX5 mFni2Y7TfwAH+j5sZoQ7UQN57FCIubx/tl9Cgzs1k6QHMRQRpYaM1QrX685B9TRj3IxC MSbD+Wu/ttx1XOnggxGLR7wF46rcpmytoyw1o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w+SAlCCuNUPEvCD1GTozNKFdZydsDT6HZxffXa66Wao=; b=tMQTx9ZJZaOTYWfEm4NpZmH3cucV+r+BeX8hkzSIdxFmoRlfN+Wasrjr6wbTBHhQUF QwQPT82iya8IvGuVrtBaD2H/zEDfRVTK4o6Yk0ipIWOWC6+a6BUONs6vplxT1vp8U2az eAO7X5T4T3Y9k2AvnqoR2WHhCV6gKyzUTs2ag6WFYowURbIQIJ/FXF2M4Y3yUW0+sZsJ 3n3M25GzQNiVHhnWNnYbYD4FZ8Ni2LArtW7UpBehi3aHfgDrjYLUVAYnEazw4rAk0EGT fAUKh1BkNP7jgi38xuGDlmP5gVYQkJwyLBtRlMq8X/n5r4/KVEC3Ao5v3BUso1m6tTcZ N3ZQ== X-Gm-Message-State: AOAM531SAoPuczCA8UlGqyD+hqGzhsDh3ZzbgVBx+0SE8KS0efqFuFut HrfUT3xTx9S/ZJ10bVh3ycfQk3vL1Esy/CIw6Y8Lng== X-Received: by 2002:a2e:9a46:: with SMTP id k6mr6565907ljj.310.1603725209206; Mon, 26 Oct 2020 08:13:29 -0700 (PDT) MIME-Version: 1.0 References: <20201011182254.17776-7-rayagonda.kokatanur@broadcom.com> In-Reply-To: From: Rayagonda Kokatanur Date: Mon, 26 Oct 2020 20:43:17 +0530 Message-ID: Subject: Re: [PATCH v1 6/6] i2c: iproc: handle rx fifo full interrupt To: Dhananjay Phadke Cc: Andy Shevchenko , BCM Kernel Feedback , Brendan Higgins , Florian Fainelli , linux-arm Mailing List , linux-i2c , Linux Kernel Mailing List , Lori Hikichi , Ray Jui , Scott Branden , Wolfram Sang , Ray Jui Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000737a8405b2945ffd" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000737a8405b2945ffd Content-Type: text/plain; charset="UTF-8" Hi Dhanajay, On Fri, Oct 23, 2020 at 11:12 PM Ray Jui wrote: > > > > On 10/12/2020 3:03 PM, Dhananjay Phadke wrote: > > From: Rayagonda Kokatanur > > > > On Sun, 11 Oct 2020 23:52:54 +0530, Rayagonda Kokatanur wrote: > >> Add code to handle IS_S_RX_FIFO_FULL_SHIFT interrupt to support > >> master write request with >= 64 bytes. > >> > >> Iproc has a slave rx fifo size of 64 bytes. > >> Rx fifo full interrupt (IS_S_RX_FIFO_FULL_SHIFT) will be generated > >> when RX fifo becomes full. This can happen if master issues write > >> request of more than 64 bytes. > >> > > > > ARM cores run much faster than I2C bus, why would rx fifo go full when > > rx interrupt is enabled and bytes are read out by bus driver isr? > > Isn't fifo read pointer updated on these byte reads? > > Hi Rayagonda, > > Could you please reply on this question? For transactions > 64 bytes, do > we batch until RX FIFO is full before we read out the data? Sorry I missed this question. Yes with current design we are batching 64 bytes for translation > 64 bytes. Best regards, Rayagonda > > Thanks, > > Ray > > > Does controller stretch clock when rx fifo is full (e.g. kernel has > > crashed, bus driver isn't draining fifo)? > > --000000000000737a8405b2945ffd Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQVwYJKoZIhvcNAQcCoIIQSDCCEEQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2sMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT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