Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp878000rdb; Fri, 9 Feb 2024 04:11:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXzhdi6pK+xfPSsYcrwlnQfpIVDjJSKXLv+EGepGaew9Fj8Zjl5KrjgVrE6hVj+G/k0BVoHcCbnTzb06NqtI+vJzP15BcggL9mDvyuObw== X-Google-Smtp-Source: AGHT+IFo69K1qvHs+Y9RD2rsH95vW65u4IxIKXlHCA0wFrZUZkPxWwJ2nweIvZaSp/2Qk8i6f5zB X-Received: by 2002:a17:906:f25a:b0:a38:7541:36f6 with SMTP id gy26-20020a170906f25a00b00a38754136f6mr842199ejb.21.1707480684972; Fri, 09 Feb 2024 04:11:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707480684; cv=pass; d=google.com; s=arc-20160816; b=wvEamG8mMYvjMmAsh4RmMiZcng5meHrzLYjIbhq+ztq7+BCuAqR01GlNIG3SD+gF3G GdngJTqE9mRZTY7eeskLrXq4NeejDTZXLHSh6ud9sCOa1Wdo+htb78ZCakSl+gvTq9fU qdfyvRgwLoNUm7RJRe3eg1NifCgy+1xmmWiUBP7XALZjPQj0NjY62ioqZbYAJ4LQ89pq B5kRQkxt43yJTGLasiZ1TohN7qtN0RrIzgvq8uVnlSl7CrkWbTunyXEJANTbesii4PGy N7tuKhHOesPPgy4bbCaM3Ljsop1iy0ndVd1T3PfAJLv0ah63/jD4tFv0KVH1REUJc6DM n01w== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=NG4oPoKOQKy+o5+bEySCHk6cc22upqmzFvBUacEPxcY=; fh=Z4wYETYWfJ0AUoEYmS0Mi9DcE3Vaa1hOQ2KquuAt9Ig=; b=GmStUhD68dJLKhzilfK4bjuwU/eGoVdgajnRvwayk5SEDDYm8WJwbxcQLngtF2AkIk N+N6BRgfLCZhUn5ILRZv4egomHFm557Dk3wqAhc0eSze1Vt/QPIKE/xfnjs2r9dh/tcr moAeMKrccP1vL5xDfn6WFapwUd3oOI+UgDNB0TOwlLfL4iDbJKWczVhC8gQuId39zIjU smf3xhbbqFvp3WlWuR32I1nlkEwo93ypYjIcXxlG2cOBNMXiikP3a4vepsjdqs66tCoB bnQsAcaPmnnid+yrrEJtLstOLBLCPS++Qz3w+C7XkBVzZsaDZY/aut8X93jrdGnAC1mY /7hQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=abngXb4v; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58332-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUhjmF5DOZ2pOdNSF0wK1BfodfYHVtP99grt2gyO+nuriet+KpomWNV3w5N5cNkwEjAMJfB/UOCDbiiPhO/lu5MLje0ONwc2l5/mgpBTw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n18-20020a170906689200b00a3c0c28fde2si11326ejr.543.2024.02.09.04.11.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 04:11:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=abngXb4v; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58332-linux.lists.archive=gmail.com@vger.kernel.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 F34261F26D9A for ; Thu, 8 Feb 2024 16:12:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2271A7E783; Thu, 8 Feb 2024 16:11:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="abngXb4v" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 EE7437D415 for ; Thu, 8 Feb 2024 16:11:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707408701; cv=none; b=DnxoVegvoZDqi+2j0wb4VK0/ZxcOHCgDZzEI0NMt9WVgBOE9F9SHo2n+d5by0523Bbd9IVmdTj9xBbyj/csJjTc6evepVR72j3Ol2nHeP/RSFDa/uLiMym0muvdV2mbFSmLB2NPjm5wbq0x7qOLxcVveFIp3PozUPqhn53HDO34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707408701; c=relaxed/simple; bh=cWTgoqU7fKZA8BhxehN7Fk4Nd65sWiM55lgOVVf+Zao=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ag/ME5MN7sB4MSgB7r6pKS1BN6IxKn2Imudrbn30AvDuLqzVIrgU9kdpHM/ldpc2k9EFNYu/ai8J5zj6c4inekraeMLWNP3c6Gvrmz99incflBxXg1yngEz2nJ5lVuUQKsBDfTsmHu6UufdrpqMfp+7PvaxO/M3H+m9kFAuqni8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=abngXb4v; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-51168addef1so2927254e87.1 for ; Thu, 08 Feb 2024 08:11:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707408697; x=1708013497; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NG4oPoKOQKy+o5+bEySCHk6cc22upqmzFvBUacEPxcY=; b=abngXb4vNsvyMLhezzANFWD1PYSJJRZOklkpx0P5HkvtBVKRCCGkkwfcmYNp6qpN+k Th/jibZUgvR49tAscC4aKyJQw+2uqNqNGbbINx63EfR/om8zfwATtsY1H4TiMFEpG1Oj RmReAIh+lcXch9EeQQrrI2zOb0+OUyoY+xrmQ7vQdENJI8eIjGSy5CvM/PHAHwVDk96L lS8z+HMs+gW9YtXL4bhfeR6xuyHoR47lDLF9T773OzDa0NO6k++hibI4WkiXiEpulgq4 CqtfVM4cZhSXujdSmJdVfVOMRzrg8jqgvUnXXIvtiJrdERKsoU85ItcGO1vgr4Z8yqD8 ARoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707408697; x=1708013497; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NG4oPoKOQKy+o5+bEySCHk6cc22upqmzFvBUacEPxcY=; b=izm6MOUqHWZma8XgVvHPXE47EUrvypKm9tsx9j/JJMvuo0Pj2sl3A0y8RHzVnuC7yH m/i+xrqmMqn1Pgv2bKfmUqC4Ksid9oV0A63SB4M9OedMLNMKtHu3xSJiEFNFi2Gueg3a QGdUNXoKUgYYqVIJVw99xzdN+UDaDlgZaevzFKKby2qBOXhONbYbSWa9e0qslLnu76q6 M0fUYo5+QS/AU/L5WoZ8/8aHV3G0OiiARhQAewgF2MuDHq9EUl0urzeZ7CofaVkewCLm COal1U4cIgs+PnrBDJQEuZeQy2IZj1khX8wBDc7g5MrYBkejnK7cI7Vx6hq21YD5rhMW A+9w== X-Forwarded-Encrypted: i=1; AJvYcCW1jQBXsN3frSQD900owcNnSGMvOiyRjpH8kJrH/yD84a7TKP/P3Ygazvs8z9KMhblGOFlNN+SdepxTT0UDHTc4VzRq6kqd5ByY6HcJ X-Gm-Message-State: AOJu0YwuyWPwm/YlPsUsS86oB//MKlOsoOSazYwuQkEcQ3Q3eTHqTcaV Mn2Krkbu0ET53GTaQqshcc48svdBZASrUWhzwgI6A+wBMQVzIQc4Iu8aexgXXG0= X-Received: by 2002:a2e:b24d:0:b0:2d0:908e:d825 with SMTP id n13-20020a2eb24d000000b002d0908ed825mr6525245ljm.21.1707408696828; Thu, 08 Feb 2024 08:11:36 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVYmG5ePPIRG4hWIMZIDpk/ukfhSXLR4iAj9vF2lng21pdqbASmaiLEbLoPdxqI6T9WFP+7dkUwFJAM53EZ46M/2YEpcWce+MZtNRr0GqRdMYUMtgTd4vpP4erj7blx/NwSXoEnBUEa0wW+KzW5prIwegoI5+tFqpCaFiN4HNOhOa/0clk7rjcjbHTTFf2xC5KRsjQO/EPvYisj0XHnmBd+GXzFqn313HiVADvoDckLNh0jzTpuMFRTF38aVYNJkZCg/x/3orRbtIY+EJQNSfh1e2O664sUk4NHH7XaR9jd/cAse9lEoLPkgrnw/HpT7aG/Ia8zvboliQI= Received: from [192.168.50.4] ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id iv6-20020a05600c548600b0040ef3ae26cdsm2048079wmb.37.2024.02.08.08.11.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Feb 2024 08:11:36 -0800 (PST) Message-ID: Date: Thu, 8 Feb 2024 18:11:35 +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 net-next 4/5] net: ravb: Do not apply RX checksum settings to hardware if the interface is down Content-Language: en-US To: Sergey Shtylyov , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea References: <20240207120733.1746920-1-claudiu.beznea.uj@bp.renesas.com> <20240207120733.1746920-5-claudiu.beznea.uj@bp.renesas.com> <82a95cae-29bc-06c1-0fab-5fa6302b4654@omp.ru> From: claudiu beznea In-Reply-To: <82a95cae-29bc-06c1-0fab-5fa6302b4654@omp.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07.02.2024 22:50, Sergey Shtylyov wrote: > On 2/7/24 3:07 PM, Claudiu wrote: > >> From: Claudiu Beznea >> >> Do not apply the RX checksum settings to hardware if the interface is down. >> In case runtime PM is enabled, and while the interface is down, the IP will >> be in reset mode (as for some platforms disabling the clocks will switch >> the IP to reset mode, which will lead to losing registers content) and > > The register contents? I thought I'd pointed out all of these... > >> applying settings in reset mode is not an option. Instead, cache the RX >> checksum settings and apply them in ravb_open() through ravb_emac_init(). >> This has been solved by introducing pm_runtime_active() check. The device >> runtime PM usage counter has been incremented to avoid disabling the device >> clocks while the check is in progress (if any). >> >> Commit prepares for the addition of runtime PM. >> >> Signed-off-by: Claudiu Beznea > > Reviewed-by: Sergey Shtylyov > > I'm afraid such check now needs to be added to ravb_set_features_gbeth() > that's populated by Biju Das' checksum patches (which I've already ACKed)... Yes, it's on my radar. I'll check it and update it (if any) in the next version. Thank you, Claudiu Beznea > > [...] > > MBR, Sergey