Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2152741rdb; Thu, 7 Dec 2023 22:33:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMyeH9z0ssTGTA9+l4ChjgHki2L7ebKJvC6UU7XuPqABlgjm7hruVT44UOqfn+6x3mLAny X-Received: by 2002:a17:903:32d1:b0:1d0:c12b:837a with SMTP id i17-20020a17090332d100b001d0c12b837amr3900064plr.61.1702017181881; Thu, 07 Dec 2023 22:33:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702017181; cv=none; d=google.com; s=arc-20160816; b=ee9sQjNX1frd/JzmL7Jvo880wuUJpEhsrC8TzcSGaDN/8skPrt3ao+aVUIkzh5ktD2 0RNteO56Ur621feKHa+gILjAVgfJp1gPHWsa+SrJ4GJFrBDkPRwm7xKDQCRXmRgVj/G+ KLUU6LPfrZkjYX3R0WSzYV7gPizts2UzvBbKZSaEATxlnbAlMxYodi9aZ5GytnuzujYZ SxlbCqu0QVQxkea4nTiXrPxoz2B03lNj0a+/mG505XC3ZI+YFcUgqbQ0pNFgpXzHglY1 XmTHZ0h5e1aOMmwBodWcwNVCla6Uj35B/J+NU4O+nep4tnFPY9AjM75z9uS0ElMD3U8J fQGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iCkKyaxiYdxzfg/WwZHBxHNJPERVT37Zd6iR0xmfKus=; fh=1zZilmEPbn2mbZwgyDKmEXLwpiDczsvbYkCy+0kNB/4=; b=EAFEvJXlQFPeiczn3KnBeclwHfLExL1wXNAQLDhZlLCHZqWe85fEFICvA8pnBzk2OK NFV+D2DkIBZrUhgxGrjSsfDbMs1SmJl8rpdvAR85CBiMDpsYrDf6d8Js49VrZDHhajit cJa+exL9G5HmbM2wcUAHQJnPvaiQnh7fuPle/eavPQouHKXjIEtPP5aAMTEWL522AUVH KfM31++SPuNxzfQXmHlf0clVUhGE8qjrX7iJn3zVR/+0DZih2njmUUCJxrBbglPdvS7A YHPf1M2MDkDp64ieBMwzNWxNeA1x1PfBQ9STWPvASXuk4epLuvT2aVXrB9+sc5JSDC5n 7Ecg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dGUwH2oH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h2-20020a170902748200b001d0b0660f91si1041155pll.519.2023.12.07.22.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 22:33:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dGUwH2oH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id C346A80A5F77; Thu, 7 Dec 2023 22:33:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232891AbjLHGcu (ORCPT + 99 others); Fri, 8 Dec 2023 01:32:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjLHGcs (ORCPT ); Fri, 8 Dec 2023 01:32:48 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7B08C6; Thu, 7 Dec 2023 22:32:54 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B85KFXV011564; Fri, 8 Dec 2023 06:32:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=iCkKyaxiYdxzfg/WwZHBxHNJPERVT37Zd6iR0xmfKus=; b=dGUwH2oHTjHJoccjkkQT0XK+DUPBQ0Z2jhP9UW8rKYqEFjFe5BmVeWVns6ymQ0PkV3GH xbOfQnxyH+tatJvzYIDcUwl0GW4WT/12EqN84dJNc4O3C4CjhPZ63gFXW37I/jGBiC+C QOWDBeYak+oZcVZK84My9R1xXqGcqMXdHw/r65S7SalXWTfcggOhlVDpGSyek65NSXtr GJdh8VAqGBw+cwfw3ii5VHqMXv7owgLbBEhoaqPD+97E0K9u6SF6ngfTzdhi+xD/x2k7 aAJHAi7EXdAAHFKhHDXF4AF78CSVv4AV67SlPgv7oN8AVzv70UjGbF6XcJ73McnhnIGB nQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uuu2089t6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Dec 2023 06:32:36 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B86WZjY000662 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 8 Dec 2023 06:32:35 GMT Received: from [10.216.0.250] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 7 Dec 2023 22:28:30 -0800 Message-ID: Date: Fri, 8 Dec 2023 11:58:26 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] net: stmmac: qcom-ethqos: Add sysfs nodes for qcom ethqos Content-Language: en-US To: Andrew Lunn CC: Vinod Koul , Bhupesh Sharma , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , , , , , , , Andrew Halaney , References: <20231204084854.31543-1-quic_snehshah@quicinc.com> <3e4a1b9c-ed0f-466e-ba11-fc5b7ef308a1@lunn.ch> <5d5f3955-fc30-428c-99f4-42f9b7580a84@quicinc.com> <0c966845-2bbc-4196-806d-6a33e435bf7d@lunn.ch> From: Sneh Shah In-Reply-To: <0c966845-2bbc-4196-806d-6a33e435bf7d@lunn.ch> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: B99xYamoXjrVNY8d7lbmhBPPKShxHT9- X-Proofpoint-ORIG-GUID: B99xYamoXjrVNY8d7lbmhBPPKShxHT9- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-08_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=948 lowpriorityscore=0 bulkscore=0 suspectscore=0 adultscore=0 clxscore=1015 impostorscore=0 malwarescore=0 priorityscore=1501 phishscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312080051 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 22:33:01 -0800 (PST) On 12/6/2023 7:22 PM, Andrew Lunn wrote: > On Wed, Dec 06, 2023 at 05:17:25PM +0530, Sneh Shah wrote: >> >> >> On 12/5/2023 8:38 PM, Andrew Lunn wrote: >>> On Mon, Dec 04, 2023 at 02:18:54PM +0530, Sneh Shah wrote: >>>> Add sysfs nodes to conifigure routing of specific vlan id to GVM queue. >>>> GVM queue is not exposed to PVM stmmac, so TC ops can't configure routing. >>> >>> Adding files in /sysfs has ~0 chance of being accepted. >>> >>> As requested, please explain what all these different hardware blocks >>> are, and what you are trying to achieve. We can then recommend the >>> correct interface. >>> >>> Andrew >>> >>> --- >>> pw-bot: cr >> > >> We have multiVM Architecture here. PVM will have stmmac running with >> 4 Rx Tx queues. stmmac in PVM is responsible to configure whole >> ethernet HW MAC/DMA/MTL ( including clocks, regulators and other >> core bsp elements). > > Please remember that stmmac is mostly used in embedded systems. People > used to embedded systems generally don't know virtual machine > terminology. So please spell out what PBM, GVM, etc mean. > >> In GVM we have thin Ethernet driver, which is responsible to >> configure and manage only 1 Rx/TX queue, i.e 5th Rx/Tx ethernet >> queue. GVM can't access any other resisters apart from this 5th >> queue specific MTL and DMA registers. > >> We need to route vlan traffic of a specific Priority to GVM Queue >> (Ethernet queue 5) via programming a MAC register. The MAC register >> is not accessible in GVM and has to be programmed from PVM. stmmac >> already has TC OPS to program this routing via vlan >> priority. However, as PVM has only 4 queues enabled, TC tool will >> not take 5th queue as input. Hence, these nodes were added to >> conifure the MAC register to route specific vlan packets to 5th >> queue in GVM. > >> Note: The queues mentioned above are HW MTL Queues and DMA >> Channels. The routing can be done in the HW itself based on vlan pcp >> before the packets reach to driver. > > Is the normal way you would do this is like this: > > tc qdisc add dev eth1 parent root handle 100 \ > mqprio num_tc 4 \ > map 0 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 \ > queues 1@0 1@1 1@2 1@3 \ > hw 1 > > But you are saying that you cannot extend this to 5 queues? > > Andrew Yes this can't extend to 5 queues. Because, stmmac in primary virtual machine will only have 4 netdev queues. So TC won't take input for 5th queue.