Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3718561rdb; Wed, 13 Sep 2023 23:46:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGomAeYipZNgotpYULhqpW8XaJMlNhyri6qzdtkANZfk7W9NkCZ4szKR3rlK0h0Hfs2Q76c X-Received: by 2002:a05:6a21:4886:b0:153:8db6:c4fe with SMTP id av6-20020a056a21488600b001538db6c4femr4549554pzc.39.1694674014388; Wed, 13 Sep 2023 23:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694674014; cv=none; d=google.com; s=arc-20160816; b=yH1q4KdU49407BcK69XYtPmN2JRYhB7MfylX3S0ZhaMY/33njNYYFlr76xOyQ4owCG SkI12c+4huxNJqwlp6mq1GfOpi/vgJ8pTaor0/pFcWIxGZGZHsz4SQbcaKVZxmmjGdVu uW4uofAbNP41OuF0t33cCTIelIOkeTsXN165UyB9aK2JDPZBvxmvhdo3tEVuPZcTv5Pg GCm9B+t88vdseNIf55LM09ZlnN+6t6YL1EkxMKtNjwrUNjo1UMEpajiiMugM00z/Vlqo 3WTZDrJvqRGyYuTMM717qOaNN/sQbOT6ZNrKZW4/aWYEE8TYMTuaQTVnflraYrbFu60P 7Hig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IgO3mqpLSWVJHvkh+qBggAdQouLFnxNzFgwRRXD33KE=; fh=z4lF2XYjEcUlV/vQXTcomfbctlLNvWMC0BU9e9rrw/M=; b=V4mckWMB7Ul29qM8A0Ex/F0hv2gZN4uh68aoBAjd5TVvKhIue3Jk40uKlJiJ/h8XD4 yBMEgrnQnshG3/rxC+yuCRzw4DwHu7Re+0gHoSYbqEZ//v9XnBXoBjgvwucxnwHrsJlF /HBQ5iNKwHeM45MGPLNGvq6vHFpjjytG9ToKatkCqlEVioAoO9bRKzQ+TAKqihAoEW0Z R67aZ3G2IIuojXQpQ0x8P1KHDTNsw8sCPiyq0p/3Gu2VuOGVhCBWCjS6xluSPL/rU3BD ooPvhqfGlbeGQHssPQxGbrYUmUZLAAn7i9+g5IEPPfXt8/Jq1sgVbqxlNZILDZcRQPGv AmYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=g2o3bZy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id h12-20020a170902f54c00b001b8b4371af8si1146657plf.648.2023.09.13.23.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 23:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=g2o3bZy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5C56E826FAA4; Wed, 13 Sep 2023 19:33:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233539AbjINCc7 (ORCPT + 99 others); Wed, 13 Sep 2023 22:32:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbjINCc6 (ORCPT ); Wed, 13 Sep 2023 22:32:58 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BEEC1AD; Wed, 13 Sep 2023 19:32:54 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E0uCgg019721; Thu, 14 Sep 2023 02:32:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=IgO3mqpLSWVJHvkh+qBggAdQouLFnxNzFgwRRXD33KE=; b=g2o3bZy4O+PkbvDLTSF4huJnpfmXwCcxOG+jE6ayjwIAYikwYOPrlN+qwsnsXOwoDeow uTc6+dhK4uwlguBVMfGjrjSgCy7cYPi1SIaqBEoRXSzMKmaPZ1zPyTUY7CXAIJuY8yZK +8KcQiQ2G+y4ZurHlK4nnfo0F1D8ilXjCG+r3VvThetFp5F/F7sJkUvCjc2HFqNkTPRt +AItnt1y4nx71rSc/C7yC/of8xXoqynz2UGHBZA+rwHZizVg9ZfU0wYYPjJG73Jc7NAV FCqwz4i1+p8imApttBUdA9HaZv5ZjAV1V5P3CaPcJBC65ZBkm8Z3nPfyFGSh+F/zxVA7 Lw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t2y7qbg9p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 02:32:41 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E2WetV031475 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 02:32:40 GMT Received: from hu-mdtipton-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Wed, 13 Sep 2023 19:32:40 -0700 Date: Wed, 13 Sep 2023 19:32:39 -0700 From: Mike Tipton To: Konrad Dybcio CC: Georgi Djakov , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , Marijn Suijten , , , , Subject: Re: [PATCH 00/53] icc-rpmh multi-RSC voting groundwork Message-ID: <20230914023239.GA25147@hu-mdtipton-lv.qualcomm.com> References: <20230708-topic-rpmh_icc_rsc-v1-0-b223bd2ac8dd@linaro.org> <20230807215739.GA9621@hu-mdtipton-lv.qualcomm.com> <10520827-dc01-475c-b09a-35cefc9e0a62@linaro.org> <20230913012951.GA19284@hu-mdtipton-lv.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 0dFrF8mWXndu0a5H5z8d_erqmvHIcWJ5 X-Proofpoint-ORIG-GUID: 0dFrF8mWXndu0a5H5z8d_erqmvHIcWJ5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-13_19,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 clxscore=1015 spamscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140020 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 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 19:33:04 -0700 (PDT) X-Spam-Status: No, score=-0.9 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 morse.vger.email On Wed, Sep 13, 2023 at 10:31:49AM +0200, Konrad Dybcio wrote: > > The applicable voters should likely be defined in the target-specific > > headers, rather than the common qcom,icc.h. The bit range used for them > > could be common, but each target may only support a small subset of the > > total set of possible voters across all targets. > I'm not sure how client drivers would then choose the > correct path other than > > switch (soc) { > case 8450: > tag = QCOM_ICC_TAG_VOTER_8450_HLOS; > break; > case 8550: > tag = QCOM_ICC_TAG_VOTER_8550_HLOS; > break; > ... > } > > which would be unacceptable. The same general way it's handled for the endpoint bindings, which are already target-specific. Any client drivers hardcoding the endpoint bindings in their driver would have to include the appropriate, target-specific binding header (e.g. qcom,sm8550-rpmh.h). That would only be possible if their driver file is itself target-specific. Otherwise, it would have to pull the endpoint bindings from devicetree. Or just use the recommended of_icc_get() and let devicetree do everything for them. Same for the target-specific voter tag bindings. Clients can also specify their tags in devicetree. They don't actually have to call icc_set_tag() directly. For example: #include interconnects = <&mmss_noc MASTER_MDP QCOM_ICC_TAG_VOTER_DISP &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_VOTER_DISP>; Then when they call of_icc_get() for this path it'll automatically have QCOM_ICC_TAG_VOTER_DISP set for them.