From patchwork Fri Feb 2 09:22:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 19827 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp309706dyc; Fri, 2 Feb 2024 01:32:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHR4KhhcTvIi49pXYxWC3nmuGieO7pTQzrYMaJx0X2cjDWfWWDDOdOHMPmkjXZ28L8Ffss6 X-Received: by 2002:a05:6a00:10c9:b0:6db:e6b9:4ccf with SMTP id d9-20020a056a0010c900b006dbe6b94ccfmr5773698pfu.5.1706866322822; Fri, 02 Feb 2024 01:32:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706866322; cv=pass; d=google.com; s=arc-20160816; b=VJaBvpXolK91kR4V6mSpcJFUFLZfvZALQUZj5li5am9/4Mv8HQUdtVNUoBcccwv4HW Ka53vrrWq5Vthk+wIVD0IVTQ5rivvBC8lGvQrXBKclz1VuFwCDAeS2VrBcznpjDrp2Zc iR8+tYh5dPqEgdLfAL2kDnFf2yUKgcSx48fqoNNL6sRsNIZ6cUutC2tTOsXT37uXEKwR f8ri+ErvsKVtDVgLqZErkROXDG/io9Uh6RPU6FFe93jJYf45DIscbeLoanWIISF4sclC Bnk+y8NNsftycv4YyAxvXGQ7NxAme7tc251VYxH4j/iuGK4OYoI9fY94CucyL2iyP5dM t1Xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=KwVIYWDlCwJBmQvhraTLkr4EOD61K4H2RbK+5DkYGIg=; fh=nSOovJK2OOkljv6f1lJ5RkXGPg8+Il8owxWshMoA4bA=; b=eTAnsPgzil/5ml/3ncnyh2BiEbCwCjGORL0j0HBpRBOYR3OL3v92Z9k/AILUbZn+nK 0uGn9P9ZRoMQ2k/qecBh2Lkwg1xFkIec1h8GNlpaw6n3qRVv1EVRheVAYIALZdzoG/MH 2dxXQbzns2XyPvzz/XsqSDcqlPw4uH7UuTm/3Yxe0LoGHU1rH1Oq13il77/8GJwfqTTX zmi1Z9yxVtgDpnss6mT7vuLADaizQEFi2wqZAcZkGjPcvbnQ2YWOqnt7OsxjPyi/gcxz Qjs/ETlpvI5lvz/oCtyPPl6M1UwlYhYFRdmaSaywG9Um3HxNDNnBMNKLLUM6ECM8fik8 kiow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3iJyvoC+; arc=pass (i=1 spf=pass spfdomain=flex--saravanak.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-49567-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49567-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCWetAuqQ7YXbg3cgruxQsI4Ree9wIfcTP9/mUxNipwi05PSe99k+103ugWXECpRzTHJSt81EFv6EgyBLIHKoBPDCsWeJg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d3-20020aa78143000000b006dbdda40004si1267351pfn.108.2024.02.02.01.32.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:32:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49567-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3iJyvoC+; arc=pass (i=1 spf=pass spfdomain=flex--saravanak.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-49567-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49567-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 534B429438B for ; Fri, 2 Feb 2024 09:26:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 803F37E799; Fri, 2 Feb 2024 09:22:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3iJyvoC+" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 529C477F2E for ; Fri, 2 Feb 2024 09:22:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706865775; cv=none; b=UUkmZsc4KX3PjpVKTyRpqK8X9vXDxoM+HGejXrHq5+sBYfOOjSPcUevPoxaqD0XLVwRozVmkvnEtpFGACWRJRQA10NehfRsQh9KAJ2AXzkzq+rMFVCvbHtnrFgRPxwZRNmp4W9235RySIuoSQc1krkiEJF1ZBbgt3Tm3tvLtO4A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706865775; c=relaxed/simple; bh=0NK7mEsHb+0WdInKdwCKKQgSWXPKGHPtGuWQPwU+gtQ=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=NdsBDU77aLgkaAlacfBIS3avlI0zPhrqCp+v4vNxUUv0Z3kxZm0kgleM63VMxtapsKaPYigtSc1BwlFAR+PSLqO41E3hrKyORV5Gy7tit/PgEhoMNu+Dt0IcPypWmSPLaIR0JXjLOoaLjFCQ0QfQFq36eg81NGeSzq+DVmwNV+s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--saravanak.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=3iJyvoC+; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--saravanak.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dc6c2643a07so3358666276.3 for ; Fri, 02 Feb 2024 01:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706865773; x=1707470573; darn=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=KwVIYWDlCwJBmQvhraTLkr4EOD61K4H2RbK+5DkYGIg=; b=3iJyvoC++rXBLj3zd0iZng1KVfjyFAg9LNslGHIcfnx5RBqU3tsbDMnw4eQcvuZgFd tDS0RNU7LwY0TVBNvuJwUZldEakIa73Bi7MTwfHmLXl9pTSplzyFyEoTZGF3KDCGhjQk kaT+x0hpIRIzUZRc+NJ0A7RxhfBITA1C5N/RJjbNGdmToOsQ2UaVOoIjTXnFjSGltIyW 9MwWbQ4O1jCpeaEueC0EBcduFh6b0Of93oBd7uv5jFhy2A88ITT2JwYFhVXLipWxHFFI QOvBRjU5/+pUlnRg4IJX1Aj0c0r1PB9yYVSYhOTC1JdBfp/99i8/JsaBotm9MEPLDtr6 Cjfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706865773; x=1707470573; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KwVIYWDlCwJBmQvhraTLkr4EOD61K4H2RbK+5DkYGIg=; b=QdSVEUg/D/smOUn9xx1YWQY+uSuLDxq6CZKGzI+Imt9N8+2fDW0N2pLN4V5RqCuRDb QRTJguKYdz4zkWYvssTLGvFDbRdqloX1uOI/ofi5ykbytKjgPhDeTtZsgYrrGD0onIUj nManX33wcNlsA+KAj4VO1dBQqERGpWo1rjFFFpURpIjqnf5Lew6N3ooG2ow4Azsb9skp lW7Tscb5xOfcx5Jwd5eNk4cNFNvaitpOEpGgAxRL9W+gMdz2iqjxDcruvKh3jP8hMnhe A6GN40F7DW7h8DmU2hYBGN+upWxbgwuFytGfuu+2M3Pz5YXwUgkELv+3VsZFzA9R7+dn FpEQ== X-Gm-Message-State: AOJu0YxIzxsf8H+SItpLNHWkMN5OFtH2GCGBZPXmbmJOgnioeqUt03fC lXCq8aic76iwKPT4t5UoFCE4Dr8KmB1CAueZt5gbjxYqLOIgQfnAj+2mxtWrbHwOS4XI1vFRuyF 6mPLnLQ2lr294HQ== X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:6f0:da10:9cb3:5b3]) (user=saravanak job=sendgmr) by 2002:a05:6902:1085:b0:dc6:e5e9:f3af with SMTP id v5-20020a056902108500b00dc6e5e9f3afmr704876ybu.9.1706865773363; Fri, 02 Feb 2024 01:22:53 -0800 (PST) Date: Fri, 2 Feb 2024 01:22:46 -0800 Message-Id: <20240202092250.786276-1-saravanak@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog Subject: [PATCH v1 0/3] fw_devlink overlapping cycles fix From: Saravana Kannan To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Saravana Kannan Cc: Xu Yang , kernel-team@android.com, linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789779060940031150 X-GMAIL-MSGID: 1789779060940031150 This is mainly a bug fix with a additional logging improvement. Lots of details in Patch 2/3. Thanks, Saravana Saravana Kannan (3): driver core: Fix device_link_flag_is_sync_state_only() driver core: fw_devlink: Improve detection of overlapping cycles driver core: fw_devlink: Improve logs for cycle detection drivers/base/core.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-)