Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp101714lqj; Wed, 10 Apr 2024 05:30:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGbQAsfUDSiSoM8vSCQBFeXAdZOgivUwhlydxlreW/CGtfvsiIsCIpxxHSRfOle+l2woyuyu/8RbcBA1hwqw/NU0MMDKPV6orJvP9VHA== X-Google-Smtp-Source: AGHT+IE5P5fL6Qv8qMC843dM/oBB4iAmzPI6gLl1aWG5Uzbxn1F9pddD3vU53NKAIMgqG11zJLvd X-Received: by 2002:a17:906:ca48:b0:a4e:7831:59b7 with SMTP id jx8-20020a170906ca4800b00a4e783159b7mr1349049ejb.61.1712752209793; Wed, 10 Apr 2024 05:30:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712752209; cv=pass; d=google.com; s=arc-20160816; b=djgKRD6P8oIcOU7jVftGeNugWOqEjwOFZTDhLkmYUI20nWBkugb/EVoZ2UgC4ZJVnl 8PGrz6Cof1mHkU+qR6KfeMHbrDQKhJfoAuD/PPjy31Z/ULDGdgDqPzWKa+4MsG0TAotL 2YI3rMq2tJoEtp2QIONKEV2+thYF1JZ9JBHQRDvgkyzpjuEIZaukw215/yKumT6EM1/J 5s4GCTxxUOQORx9rMznw/Lf4RBo4e5XN9Je1yfKkFY/Mfs4V+X8ZIIxRoZPxLzZYOpac GcL35qu6PgGVkBmJtqfsqI8UN97MSUA0TERwsCpX5dZWKh7hN1K/Ndf7PFHrgyRCE7Ns MRyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=D4Ncc1pa9BhF/FmRU7MOCEHKlQToJMxwytJIdFX92GU=; fh=9MbUNneg6G27tpcLGWtec4vSph6pD3qI28jorQTPMa8=; b=qoFoT6y85Qo9/s0/vz1jN27Pn6gg3fNc5M8nSUIPOThefHU51/t9m+fxNAS6Y2yJUL 1JaxTdMGHFs9+bWQ1OID0i4QiAsAjI7T5G7jEJs89QShNbsQhfAe9KEohAIAu0j/g8sd 9DZhBYrV04jxURLG1o4Gjb8IIJ9NcAp8AwM82WPKzSS56HnBRE4+IPSMf+So6QEGdHFE fxwn9bGnb8PMavHeHKCuYcMIcLinR54Lb8kJxUvaRJXlF8tZsGEs4qUJIhsneKkOFzKW KgYkQEwoAEFpc75PBZN7fEsjP3Z8uAXy06rUNzDYEtvyTP5KV9b8GmDiq+p2VtldH6DV 9VFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fEVePMLI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-138496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g20-20020a1709063b1400b00a51e455bcdcsi2183308ejf.688.2024.04.10.05.30.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 05:30:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fEVePMLI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-138496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5249B1F23D27 for ; Wed, 10 Apr 2024 12:30:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5725915B54D; Wed, 10 Apr 2024 12:29:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fEVePMLI" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FA991591F1 for ; Wed, 10 Apr 2024 12:29:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712752196; cv=none; b=gQyFbwtVkI1TNWPKFTQx3QSosMbTULcGiqkis67zODN0rR1jE/5F2rDGfDd2ch40ONDzZJ1ihQ9A3/EYLtcnb94ewBydvlM+WPODU/BSAmL22w/0ueIN+VfUKYiEuZ26rma4f4RCo4KSETsCJiiBgis9o4Ex3xeZuIHMZoUy74w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712752196; c=relaxed/simple; bh=jsN9p5AlR+y/siVRTqak+eX0XeoQHzzHsK6bvZnvJzY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MkDEBjek5bQ6d7EiA9cAN5pBziI/F0xNWj/CsxfjLK3xs9NfwNpi/fzpHKI/MggvmmtQR5ucCjf0m+4Ux9ssoib9PmUHP04ZuQoaqkr/aY1qJ1ZF7KU7XuC+oEe/oiz3PbyVxw72TlcvRj32+2/AXmt0s/JBDKj4A8o/MYAYHdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=fEVePMLI; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-516d09bd434so7339985e87.1 for ; Wed, 10 Apr 2024 05:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712752192; x=1713356992; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=D4Ncc1pa9BhF/FmRU7MOCEHKlQToJMxwytJIdFX92GU=; b=fEVePMLIyeene1JHX4gbixDAC3bntmUu1Bte/e+xEGmGH2qmi5pbp00RqlZ3mRU9yJ ZPNnBmT7Lj85bwcyrvfEuDylzMtFE5ZNLdv8MuJPCGA+koLz0HA/vtewHXIvzdhr0W1U efUASk3ulPf0cY4n8OjthmoSUtxM01OXuFzDCDItyonty9iaS9Rj5T8cgrWmH8rnhK9M DZiK/BmBAO2R+tXEjaHW7Hdp2/01FSoGDhMBnCe34Plyhf7Ime+C9eR5vLPTWhaBeibb kbIITk8KpqFFr1rSrbo2ACCQYGn2fg4SE3jsmiBolHAt0QNNHH4Gba7XaEhomsEFnExh 2XYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712752192; x=1713356992; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D4Ncc1pa9BhF/FmRU7MOCEHKlQToJMxwytJIdFX92GU=; b=w8dM+M3v7hUJU6eB0NJZGFsvMFUZ0o1ugb/25VaXZKWIZqNxpP8b+J5w15h+jN2YdM HhkYEovHetbfuiCx2nWp3A+oIR29YEgZ2ihp6y1QzgKJhCyDObvYT+Dzs0dfogA4kTxL Ya6T1+0tQMDTYfn+GjKdJxtOvqcuuVDGtReTr8PLUG/rCvFCHGeQ+0oug744K74ET8jQ yHxg45NLniavcgAxcAXy14gnsSQyegOzlK3jf8wnYYBsvI5zSZbzzC/pwVXiuSSGwcFA m6AbG+Gr6gAnKOefCCa1x/31HP/ylFgb11udAj9dEuZ7n2xH8LGeZOOpTgeCAoIYUf85 JlzQ== X-Forwarded-Encrypted: i=1; AJvYcCVVHlE6Ah/zHD2YITMD9CkuVOEqx1sm7/5HW2ydcXb11ZTemAKkWTLUgYk5T6KcU/4XqlV4/NsIMZHZ10T9SZSTgmEivgNhvjHKM+VF X-Gm-Message-State: AOJu0Yy754BCfFt1W8JsFOGvIaju258LvHtkGbl/Ukx6sl9OARdeR+9k UtqcddBb0DyiNLuKUZDg8pbe6zC9CaRFrWn87GVHV+6ntZjC4pfMhFg4Vc8u6PU= X-Received: by 2002:ac2:4d08:0:b0:513:dae2:dd7e with SMTP id r8-20020ac24d08000000b00513dae2dd7emr1430092lfi.32.1712752192622; Wed, 10 Apr 2024 05:29:52 -0700 (PDT) Received: from [172.30.204.89] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id q7-20020a05651232a700b00515d106fec5sm1838458lfe.283.2024.04.10.05.29.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Apr 2024 05:29:52 -0700 (PDT) Message-ID: Date: Wed, 10 Apr 2024 14:29:50 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] i2c: i2c-qcom-geni: Add support to share an I2C SE from two subsystem To: Mukesh Kumar Savaliya , andersson@kernel.org, andi.shyti@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, dmaengine@vger.kernel.org Cc: quic_vdadhani@quicinc.com, Vinod Koul References: <20240402062131.9836-1-quic_msavaliy@quicinc.com> <51c84af2-73f7-4af4-8676-2276b6c7786d@linaro.org> <669b516a-74c7-445a-b151-5463fe39b21b@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <669b516a-74c7-445a-b151-5463fe39b21b@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/3/24 07:56, Mukesh Kumar Savaliya wrote: > Thanks Konrad. I understood. > > On 4/2/2024 7:54 PM, Konrad Dybcio wrote: >> On 2.04.2024 8:21 AM, Mukesh Kumar Savaliya wrote: >>> Add feature to share an I2C serial engine between two subsystems(SS) so >>> that individual clients from different subsystems can access the same bus. >>> For example single i2c slave device can be accessed by Client driver from >>> APPS OR modem subsystem image. Same way we can have slave being accessed >>> between APPS and TZ subsystems. >>> >>> This is possible in GSI mode where driver queues the TREs with required >>> descriptors and ensures to execute TREs in an mutually exclusive way. >>> Issue a "Lock TRE" command at the start of the transfer and an "Unlock TRE" >>> command at the end of the transfer. This prevents other subsystems from >>> concurrently performing DMA transfers and avoids disturbance to data path. >>> Change MAX_TRE macro to 5 from 3 because of these two additional TREs. >>> >>> Since the GPIOs are also shared for the i2c bus, do not touch GPIO >>> configuration while going to runtime suspend and only turn off the >>> clocks. This will allow other SS to continue to transfer the data. >>> >>> This feature needs to be controlled by DTSI flag to make it flexible >>> based on the usecase, hence during probe check the same from i2c driver. >>> >>> Export function geni_se_clks_off() to call explicitly instead of >>> geni_se_resources_off() to not modify TLMM configuration as other SS might >>> perform the transfer while APPS SS can go to sleep. >>> >>> Signed-off-by: Mukesh Kumar Savaliya >>> --- >>> v1 -> v2: >>> - Addressed review comments. >> >> The biggest one ("too many changes across the board") is still not >> addressed and the patch will not be further reviewed until that is done. >> >> Each subsystem has different owners and each change requires an explanation >> (maintainers always "expect your patch to be wrong" and you need to >> convince them otherwise through commit messages) >> > Sure, I got it. Will send patch dividing logically between i2c, dma. > I have already responded in just previous Mail to seek clarity as below. > It was : > "Please correct me if this is wrong. The overall change is for i2c in GSI DMA mode. This also requires changes in resource control like TLMM changes. But it's more like integrated feature. > Are you suggesting to make 3 sub-patches under same change ? " Yes, every subsequent patch can only introduce changes to one subsystem/ driver and can not depend on the next patches (i.e. the order matters) Konrad