Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2133744lqt; Mon, 22 Apr 2024 02:22:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDWVA63M+Qf+0uzKJow9MNt10l2JRt0R6gICXs0J0NWGcdxJ+CUKakO+avCyTPlu/32tZiQDVpiF+t5NcouLySPgT0zHUT5FN4oiN2uA== X-Google-Smtp-Source: AGHT+IEegAxDFxrgXTTpzC1MxOkutwUUedW067QMfQDy4Bq2WzLnBC2tgMJwau1k4G1C5lJiEQ57 X-Received: by 2002:a50:d4c3:0:b0:570:1026:c985 with SMTP id e3-20020a50d4c3000000b005701026c985mr7214910edj.0.1713777740075; Mon, 22 Apr 2024 02:22:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713777740; cv=pass; d=google.com; s=arc-20160816; b=dSVGSPOnDWQbca3z2Uxo0xyjXI+TWRCL6fRE9dFDkvjRaw4a57NPhPqCP7RE2mOlAd 7yGiVCYE2oV3ChW2mhd6Ace7bsocWfzqnWAFEk1fb3uZA0/DsBby83XyfzHwQobqcPxl G8Q9mmVyi3XAuydUfFj+V1lcX/UkjOMIzlf9liWKHynQOrNARMqBZue7MPNZIIDdPdBC 3F7itSbjHsXu62sZh55fOlbwXoCfXbYS+aMgukv+PUTReKK2FCsrdiFaznOwjsUbAfvq vFu2RC+X/SRInIQSLTaqDJbGbtoZQae3zDB47B3lxRpNhtBD8Akfmfqo+D8PCRsgFH6Q WAZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from; bh=AemfkR8ljy0yAYziEYQEMxKa2C6AiZQbPEufUnYs5iE=; fh=x3NbelUx/rNG6Zg2NK5WMdPrwLwGL+I8GPxw2gNTx0s=; b=ad/XaJzV0OMfHwXI0Sr54LcL14JmTWMptRPtl+dtV2l0Ss4SWKS+fu0syVaT5k2Ura +XaOgP59Ghzx35ykDyJd54PPi5FBVsUu6yn5uLUf9ZH2U+imJu1TSZ6HVSEn5H2+XCqB wLRSQCLxPFz8BV/Ggw8l9FRZVEBkK+cmWbNMaULOyGF+Sz0TvrSnszlpiYSq8AgyY/H8 hPLFQuKS09IPGWYKXzimTFeWut+FoO27fG5uTlYc7U6vkKdNDTMm1vDnT6568kWEyfBF xXQq41RInu4vIZAKwVt+DD+6Pqv2peNnME+ndNyLTnVVlI0O+xb6GswI8DqwFWhy6KBL n+Bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-153085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153085-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z3-20020a50cd03000000b00571e13d19c6si3655900edi.353.2024.04.22.02.22.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 02:22:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153085-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; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-153085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153085-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 C21101F212C3 for ; Mon, 22 Apr 2024 09:22:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F301253E35; Mon, 22 Apr 2024 09:21:46 +0000 (UTC) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1590353E22 for ; Mon, 22 Apr 2024 09:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713777706; cv=none; b=anObE1G4EOg02/+LFhz9Drq9PWTQHXAgn1H0qCUQAPCbFpwbHIQYOkAhLZusQw4LDJEaCwfcZ1giPytz8Fd+ZuqJuLka5H09tz2T9a1uF+vdJf4zwDspgyOI3CKkgHpqGlUs6iaaQNsDqqx++i2wyAFfIh52TKr2qQmf0ou6lXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713777706; c=relaxed/simple; bh=lHsQk24LRFF+sQ1P0elf4sGSVBGC2K+0eBMqlc8Ojfo=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=XDfhlFGZUY9CAEm8H2glpd1D+KGzElcW5O5SoKHaU/LLTCcy/iZnLPlFxOfVqs8TLETXGS4/Cnt53v+uDvw4gOtMosWFeKIH9ScfVzDuQG78sBZjNtu+ct8Y/kOCNg4zW5/LXgHUA1itKoe/l/hjoJLli0FK97P/YLGcv6TAZYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VNKWV1Crdz4wyp; Mon, 22 Apr 2024 19:21:42 +1000 (AEST) From: Michael Ellerman To: iommu@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, Shivaprasad G Bhat Cc: linux-kernel@vger.kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, aneesh.kumar@kernel.org, naveen.n.rao@linux.ibm.com, jgg@ziepe.ca, jroedel@suse.de, tpearson@raptorengineering.com, aik@amd.com, bgray@linux.ibm.com, gregkh@linuxfoundation.org, gbatra@linux.vnet.ibm.com, vaibhav@linux.ibm.com, venkat88@linux.vnet.ibm.com In-Reply-To: <170800513841.2411.13524607664262048895.stgit@linux.ibm.com> References: <170800513841.2411.13524607664262048895.stgit@linux.ibm.com> Subject: Re: [PATCH] powerpc/iommu: Refactor spapr_tce_platform_iommu_attach_dev() Message-Id: <171377768067.1735812.11531947951932765598.b4-ty@ellerman.id.au> Date: Mon, 22 Apr 2024 19:21:20 +1000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Thu, 15 Feb 2024 07:52:32 -0600, Shivaprasad G Bhat wrote: > The patch makes the iommu_group_get() call only when using it > thereby avoiding the unnecessary get & put for domain already > being set case. > > Applied to powerpc/fixes. [1/1] powerpc/iommu: Refactor spapr_tce_platform_iommu_attach_dev() https://git.kernel.org/powerpc/c/5bd31ab5f79eb6e3bdfa0ca0b57650f9d1604062 cheers