From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796459731; b=lhbBzG14o6RT58tA+tMF7QDa+MA9wuZgGK3jp+P/U7tzW8svmcGf3uA+vyiIJXxYDgU0 yIrOVhBX3HxbIQ5h2rZLSpD5vrHsyHy0cSvbqpt4fzerb77DkCTA0B2JhNn2hFb5koxKl SG4rFDgBQHz4r+c7WDxynV9su1s8kXu2wPJYbrIBu8cbKNmNBPE2Ov8mgrZYm6/raLJYr 54/m709vtLGK9EIDp18aWYgaAOtTIk48UCOUuqVqCHZ2zEjS5o3opoIiYKvSsEzWZXOhh HmhRjXVCv+uQ0BTgnV9iZbsgiXPkHxhA0ckY3RzgL0JjFg6X7ymZIZ8qFZk4seDVd0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796459731; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-Scanned-By; bh=AF+CQ1Gckb4TBjQ7iguNFXFizqaIXHFETwLiEg7KCCQ=; b=hRYpLTKkA8KLCuZS9vjw9IOz8C34mEwHEZpnzf18IvNTx5HViMJS57phkwIKfANY6PN1 /jnHbSvrA3MID24GG1/HreuQR5HK6eLNUVdi7WyiiYROC2hjLwcClw8FDWRS4rpJGztSG JsOQ0CTpWdlrg2UGq9qbk+Plt1pn/p3fj66l78NYUqRoh0m9WWMW/QDXdROWwPAGBmTSa FojXJ+0pql7VrwxCYz6NHFQ01/y+1SqCdYy06rrUAt/AEsxDgPEwYlQHix/N0iJXv/dEz 94/ooZS3ullr3YCU4WNEVQ3BSrgn55/2WbBWMGM02nOGwA5fQWvphOXMSRz+a2t6teg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eEzetQsj; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48430606A337 for ; Sat, 5 Dec 2026 08:35:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 48430606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eEzetQsj DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796459730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AF+CQ1Gckb4TBjQ7iguNFXFizqaIXHFETwLiEg7KCCQ=; b=eEzetQsjoDMViQIPShssk7WrvXBIU5sp5YJoskwpDZrhF9iH3HR538eDV5vfpOzSH8FF3C fcfj2AV9dUTVL4LvE/EcDmN7JT37Het4t0AW79rzdzzx/ncz+6de/8v+e9BRLem1U4DIQb DkIGwV7XgpuwCJ0O9YD9xdwyGNo0YEE= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS with 8BITMIME (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-374-RHftOb2gOQugQ8bLNTVFoA-1; Sat, 5 Dec 2026 08:35:25 +0000 X-MC-Unique: RHftOb2gOQugQ8bLNTVFoA-1 X-Mimecast-MFC-AGG-ID: RHftOb2gOQugQ8bLNTVFoA_1796459722 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C8C7618B626A; Sat, 5 Dec 2026 08:35:21 +0000 (UTC) Received: from [100.91.101.41] (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 44C133003EBC; Sat, 5 Dec 2026 08:35:17 +0000 (UTC) Message-ID: <0493484f-4b32-457c-b57c-4f019586d968@redhat.com> Date: Sat, 5 Dec 2026 09:35:15 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 2/3] dpll: zl3073x: always fetch device state on start To: netdev-bot+sashiko@kernel.org Cc: netdev@vger.kernel.org, jiri@resnulli.us, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, min.li@microchip.com, vadim.fedorenko@linux.dev, arkadiusz.kubalewski@intel.com, linux-doc@vger.kernel.org References: <20261203180627.215256-3-ivecera@redhat.com> <179641050045.3146.1515029809826961628@kernel.org> Content-Language: en-US From: Ivan Vecera In-Reply-To: <179641050045.3146.1515029809826961628@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 On 12/4/26 19:55, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 2 potential > issue(s) to consider. > > Critical: 0 · High: 0 · Medium: 1 · Low: 1 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [Medium] Regression: a devlink DRIVER_REINIT reload now throws away the > cached NCO frequency offset (chan->df_offset) of any DPLL channel the… > - [Low] The commit message admits an existing defect ('The device CPU > reset at the end of a flash update already allows the same.') and this… > > -- > > dpll: zl3073x: always fetch device state on start > > This commit removes the 'full' parameter from zl3073x_dev_start(). The > function now always fetches the device state and sets up the phase offset > measurement block. The devlink DRIVER_REINIT reload, which used to skip > both steps, now goes through them as well. > >> The devlink FW_ACTIVATE reload, added later in this series, resets the >> device, which reloads the whole configuration from flash. If the >> restart after the reset fails, a following DRIVER_REINIT reload would >> register the DPLLs with cached state that predates the reset, and would >> not set up the phase offset measurement block again. The device CPU >> reset at the end of a flash update already allows the same. > > [Severity: Low] > This describes an existing problem in the flash update path, and this patch > fixes it. Should the patch carry a Fixes: tag for that? > > Before this patch, zl3073x_devlink_flash_finish() reset the device CPU > through zl3073x_flash_mode_leave() and then called > zl3073x_dev_start(zldev, true). If that start failed partway through > zl3073x_dev_state_fetch(), or returned early because the ready bit was not > yet set, a later DRIVER_REINIT reload called zl3073x_dev_start(zldev, > false). That path skipped both the state fetch and > zl3073x_dev_phase_meas_setup(). > > The patch is presented only as preparation for FW_ACTIVATE. Without a > Fixes: tag, it probably won't be picked up for stable trees. > >> diff --git a/drivers/dpll/zl3073x/core.c b/drivers/dpll/zl3073x/core.c >> index 27a55d810d5b0..5495d2c67848a 100644 >> --- a/drivers/dpll/zl3073x/core.c >> +++ b/drivers/dpll/zl3073x/core.c > > [ ... ] > >> @@ -895,19 +893,16 @@ int zl3073x_dev_start(struct zl3073x_dev *zldev, bool full) >> return 0; >> } >> >> - if (full) { >> - /* Fetch device state */ >> - rc = zl3073x_dev_state_fetch(zldev); >> - if (rc) >> - return rc; >> + /* Fetch device state */ >> + rc = zl3073x_dev_state_fetch(zldev); >> + if (rc) >> + return rc; > > [Severity: Medium] > Does this lose the cached NCO frequency offset on a DRIVER_REINIT reload? Good catch, DRIVER_REINIT does not reset the device, so the cached state including df_offset must stay. Will fix in v2. Thanks, Ivan --- pw-bot: cr