From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796479483; b=i6QAl6MLrhN3EhVXIa4uHQSxsU/wN/1+vufQlQNvs5/ubBdyer+pL59F+E48EK8dweM9 pKdGhRIdc39AUq98AJUNN0cKojEO2hEzZqBqHNkx/pRt0PgIjSfz8orP+Ys+fE/xF8d2s wsDJfJBLRQflPv6+flhEPdqiHMScHLwSc67N2+NTF/85D2hxRX5915gfLTInpRQ0BXbH3 AHRN4lixxUQxFKvS7abFbnKi4PB/saYsaqtmxbCeBfuX4X8yQ1fzNY5Hssr9dwddNH+Xs AyY64Fr+0EdsMXEN/yLTCryQ4nsFfEpuQ3v1pOSG3t4zxWZcH+MUDblyF3K8Dbh4feA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796479483; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=VgQmJoMi2mKqlK11YHhxseLSPS0CLqo90uUJxgGx6tA=; b=2b/lM4AbqcQ4eSiT9Rg7lyNKxtFhvH3ozkWcgCIQXkqQU5H72+F7sKCuhu26NNAYmCaI uwRAbquzmQAsbOiYCx1fV9VweXHZv3J6xXdnEQ6q3mkltRg56aVoRZUg96We0Ka9pkyA1 LMgW4mBd89wJq/AKIaADvi7SiPPmyl3X6dcx0jIBD9LveSUtll22Hqnnt3vO/Bga5kZE0 K6xeuj45ovVP76CrWUBETgdsR+6+8D/+Rbtm+8ZyZ7SuXhy2E0Qycq3np17FxTjizxR/7 8r8IdJt6nps+nOimL4bzokSB/QXVIuNbKcOa9UWGSfRc1X8gPMlV0wWdtqUjhrcPC1Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="x/3SqCBP"; arc=none smtp.remote-ip=209.85.208.182 Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 831B6606A336 for ; Sat, 5 Dec 2026 14:04:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 831B6606A336 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=x/3SqCBP Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-3b00ada6f2bso9519611fa.0 for ; Sat, 05 Dec 2026 06:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796479482; x=1797084282; darn=vger.kernel.org; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=VgQmJoMi2mKqlK11YHhxseLSPS0CLqo90uUJxgGx6tA=; b=x/3SqCBPLfHgioIwWyz5nNqdwN6wzPuehOSKPhv8Z0NE8U+bB+mu/WqKSHJT0/ndxq 4svbc5mCaeZsvmvQolcZUgp6BeoyH/RRjS/ww+VLbxUgDWzG1+GDVyTUCADuiL6fJeeo aZA8hI3xlw2tuWKEfvTYj6OuckJTrwhz3Hman/gk8cSjUDaglhvoMaAypzADDuhIO3Iy vhz4KW6snbiKEHAinwtmpFlJcPMLWDLyTTQOut3hvRilaxkBQRoKhoPvhn+fOUjobP6+ drubCmP7LppPvSffXsObR/ORDLtOI4gLqFnLVOW+etZkukAGKedvzYZS/mpPgj4Cg3PQ GEzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796479482; x=1797084282; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=VgQmJoMi2mKqlK11YHhxseLSPS0CLqo90uUJxgGx6tA=; b=XPppC6BwuWNdHXgO3NED8DK2ljVAsR2+2GUQsEhJW7U80zLfalOEhWgpcrrR4r5n3I DV9TUbJTNp84OkvYM/67krEe0eE67qmTQZAEKcmoo2DicqdwiRCezX7eXVhrRdQcu8hc uMAH7V5zUJZz6OXmJmMgULxV5yv5gFhvYKe4AnWBQ9TihmEqC/2GIKGWr/ZtvVpt6eQO +Z3Zrhwqu8Xe6qtbwdC1Mb38v4KfYEYwPfPVoKlQaviTF7w6IQmujxL/v5qbs4trdMnC 3qeYl06m8Z4KD01CqguO6u/C59l1VNJP0OMlAj9ISOMGoN4kR7pC+Y+1s0qREK2yy4zE pAqQ== X-Gm-Message-State: AB4q+uHwTbMO2SYLC/2LrEkxK3O2CCvqEI2KuzyGaTSp6VB/IbOrnCiN ReymKQIHJT58iajdo3wXw07l2j+Gt77NBuZHwARJ7E3LfhEzqlIgSbj0 X-Gm-Gg: AZFdTZdwyYReD0F6pzJIX3Ud3E4t3DY7wlibdrtOSBuOhBE05KB7Q/2QVGqjitTp9uA XDfnnDROedqaJ73Yg+EVAZOAya6XZmAKyCRRLhSLPEZ1XupNaxZ+4rUs4TRkrMCfoaBC2nZFDPR RORYeXmXysNmooQbmKBszaWAbMyD8PY5NxZV7hwBrks8Y5B+Llk9+qY+RLP4mu+perI2nStq+Vr wSe0YWevYFIWkXFLgr5i78MJZdItqFZWEPV2zvszEon5ayB8KJjdyoUyF5BjK+PJOV9FNz2o6sv 9TQQ6ijw5kuQ9bL/KQlaCp63f/B7xoKwqpzIso/9JLw6jDyAQBlt8IOkI5gyISSZpX8pT3H07V0 OFL1R7bIER5v/cafAXYlXufYC4FzOG82wnIFn81XOmzfR6VtKTPfaGoRq9mVPXQeRulgC27ydyk 1rXk7lw6WhUVUGLk//AOkzo48XrhgvbQtMMAhIEL7ZasB3Poj3YcOCi5a+tYGEldqMHG7QvmHAk 8SGW1rwZFoRqggVuZYfTAAfZ+x+K6t4e9V3WyceouyNARNFHrFNHn7lpzYS1IbV2ZLjwluTeAl/ A1nYd+rVy4uW0IlaaeZkVXASc4+a/iMuhCrLoZt/2BDd70zOQwt05YQ= X-Received: by 2002:a05:6512:3e1c:b0:5c1:4ede:6fcb with SMTP id 2adb3069b0e04-5c38616b8damr1155141e87.8.1796479481584; Sat, 05 Dec 2026 06:04:41 -0800 (PST) Received: from [127.0.1.1] (ip-024-180.users.dtel.ru. [91.210.24.180]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5c384abe58csm1460087e87.84.2026.12.05.06.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 06:04:41 -0800 (PST) From: Fil Dunsky To: sashiko-reviews@lists.linux.dev Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org Subject: Re: [PATCH net-next v8 2/3] net: cortina: Add CS7542 CPU network datapath Date: Sat, 05 Dec 2026 13:53:41 -0000 Message-ID: <179647882170.6.6820387330319858360@gmail.com> In-Reply-To: References: <20261204-b4-cs7542-ethernet-v8-0-4b625ce9fe82@gmail.com> <20261204-b4-cs7542-ethernet-v8-2-4b625ce9fe82@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thanks for the review. v9 disables netpoll for the shared TX ring, takes a reference on each port's DT node until after phylink teardown, uses GFP_KERNEL for the probe-time RX pool, and uses DEV_STATS_INC() for the error and drop counters. The linear and scatter-gather TX paths share the descriptor helper and write the DMA words in little-endian order. The head is published once, after the complete frame has been mapped. Updates to head, tail and fault use WRITE_ONCE() to pair with the lockless reads. The shared lock still protects mapping and completion against per-port TX and teardown. RX now uses the refreshed XRAM write pointer. The IRQ handler still acknowledges the latch, so a stale latch can cause an extra empty poll. The current RX lock and jumbo skb allocation are retained. The receive path copies from a persistent DMA pool, and transferring those pages to the stack would also require changing how the pool is replenished. The DRR bypass command addresses the port shaper, so v9 issues it once per port, outside the queue loop. The per-queue DRR enable commands and the existing LT/ST programming are retained. I'll post the full v9 series separately. Thanks, Fil