From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 52EFD480DF3 for ; Wed, 23 Sep 2026 10:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158425; cv=none; b=gJJmb0mIriR5xMaxiO8vQN95+aTTEfxi9gZCA28Shlc8KVp46XCdRZV/gMPbsGHTHelkvio6+J0z/m/WwFohGE/hR8GrNvQfDpAySs8HLdhgTHVmmXRH7lnGFnfKAzK9PXi3kZyhCJmw9zcpkFpDAg/g5KiRTkm0WoQz8X3K6Z4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158425; c=relaxed/simple; bh=86tGOrPEB/iivl/l0MEf2yHA5M2eh28fX8Zw5dM3jqY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F5bCAYJXnPYdHLtWJIUxatBmpwlKNRLOaZz38qAQ4YFJInKmaE4vwu/tKN+sEt8VmSjLxP0kRyj76u8H3T6oJbkWpmpxUQ9eAGcuhVSwQseNDlOg7mFhbYAYwphT+y/MnmW0dq59k3A0lQdUORCUHcab10YrD4ZJbb4th9uwrZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Ln02HIXw; arc=none smtp.client-ip=209.85.128.50 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=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Ln02HIXw" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-49e6425f96eso35845e9.1 for ; Wed, 23 Sep 2026 03:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1790158416; x=1790763216; darn=lists.linux.dev; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=vdEIBnHA/8T+E7XayOUCjgaZYlTP8ZfuwSF0Dftqz2M=; b=Ln02HIXwsbl8xs9zc124170piWgfJpsk5IRhLVrSa4G82/QME7/uTQTHqHDWZpOs0q gaH5eltfXC4S3wJIR/p+a1WcZNpHkSurpfvZmAPTPLqkHhAZ1mW6W0Bf5YRNTgLKItBF pqDOpGTEioBYD6T+pqd8/QFPg0Bz8/IgUAU3eTjQIQUiUCEOuNsEomMdUTHTbQwHy4gS inHctEnc1aNHb+KozRNZ02PF4VJI619t/NaLhhWcDxIJk2tb8gMQtX+rFHfVu7o+Xj73 QmbsfHsPTwWrX0VSzcNFKK8cGmFiAAr+nQn0cEE8C/6/2ycHUobsrQF03LhhLj4Qh+NO bMKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790158416; x=1790763216; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=vdEIBnHA/8T+E7XayOUCjgaZYlTP8ZfuwSF0Dftqz2M=; b=AgWK4rANpesongKlcj2BSt5xmvec7NHHAQCkJYPQXaCT2gqNJ82eEgJ6eFyw5+hWDz rpri1WYRrGR1JQT/ERuSyxTLHoyVMLfAfciTetln7SyR/gDl7rSYOJiLKGoeyErZoNvs vfVAV88+0egB+Ygh3qLxHtF6KNW4/zr5jB4QuSg+6dBANa/eO8uifbMGVa/cYA/PdX3S iLtjbYyGn8h42Hzh9ksYPhKtfCzR/A4H4OUofRJuG08BHgzK5DMR2FZKGhxjlMNrVXGp q/t2TxOjamo4IIiQXjkLm8imARtyMiLTl34VoJtZKVenRfWZNlehLd5PZahxYs0B9tcY idzQ== X-Forwarded-Encrypted: i=1; AKwUvBwmVvkMtQwQ2wfqs0pTu6v67iBicxX6Zbj1HiOW+6NvdgP/uaUVJK9jGtj0zDQONQ19k4HudKQ=@lists.linux.dev X-Gm-Message-State: AFuF++mNiWBJyCE6IvelByF4xrQb8JAtPm8thV3Vjz0CjeyZL6wu9f3J 2ogW1u9QzkHBTmPP/3Q703qnHzXnFeNHt+s+hWf7fdHA+twPq8gKZaMRidmbCxBmmg== X-Gm-Gg: AYBFou0aEnFwkEipkJ3vddh7Skx9XqIcYbbPilHwM78fpv/80rsDau0bYb6FPeywvj3 ox/MsrSAATHk6R42xA+tlvo+5jxJkmlnW+xdWKEqhjZ7F7VHmGKJ4cbmutZPBM8RB+GA/0Y4Rsx 0HyTSV31USNu5nVDhyk69PtVZ09iH9+5ZlgFJOb76denyBC/CDXcXOrY6mAuG9aJNKAH0ssNxRJ Pqjbk9NLThuQSGaGuevHrQpEwbjMhHT1dGhABrzIUfC9nlnh3Q1YehsPgXEs2cGq2ZSf6ywd8rj 2gOfdcvXv+I/2vUpmNSCuU+iHeNlvWJJxh/Tzse4RTv0xHTksaHNSXn8ZFwxrE4b1egVUFGy8wj /ShAqMG82MNF/rVdIT3dLQgQhCrPoGtFtvEF8gi/QT9JKLuQRq60Iz7mN3AUN5Yyhk3DUv749U/ Gcay/8CbYMiv+lm/qsNDwG1vtQMHmcgCguG6vWYw1Yc6uLHJGNtPaakz2q34rjJ1grRci/V0P0A cjPUN8jsIdj0cqes4FsH2AFxeFhFWptzMQB9oOrWA== X-Received: by 2002:a05:600d:8653:20b0:49f:e0f7:257e with SMTP id 5b1f17b1804b1-49fe0f725e4mr416395e9.6.1790158415606; Wed, 23 Sep 2026 03:13:35 -0700 (PDT) Received: from google.com (250.192.189.35.bc.googleusercontent.com. [35.189.192.250]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48868486408sm5194076f8f.9.2026.09.23.03.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2026 03:13:34 -0700 (PDT) Date: Wed, 23 Sep 2026 10:13:31 +0000 From: Mostafa Saleh To: Jason Gunthorpe Cc: Nicolin Chen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, iommu@lists.linux.dev, catalin.marinas@arm.com, will@kernel.org, maz@kernel.org, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, joro@8bytes.org, mark.rutland@arm.com, qperret@google.com, tabba@google.com, vdonnefort@google.com, sebastianene@google.com, keirf@google.com Subject: Re: [PATCH v8 04/25] iommu/arm-smmu-v3: Move IDR parsing to common functions Message-ID: References: <20260922131259.2975334-1-smostafa@google.com> <20260922131259.2975334-5-smostafa@google.com> <20260922214818.GA2545495@nvidia.com> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260922214818.GA2545495@nvidia.com> On Tue, Sep 22, 2026 at 06:48:18PM -0300, Jason Gunthorpe wrote: > On Tue, Sep 22, 2026 at 12:45:20PM -0700, Nicolin Chen wrote: > > > Also, Jason's suggestion in v7 was hyp_arm_smmu_v3_device, which > > looks nicer than ARM_SMMU_OBJ... > > I guess the point is to emphasis the substition technique, I don't > mind. > > > > + if (coherent && !disable_msipolling && > > > + smmu->features & ARM_SMMU_FEAT_MSI) > > > + smmu->options |= ARM_SMMU_OPT_MSIPOLL; > > > > Will pKVM ever use MSIPOLL? > > Not sure I understood the approach in this patch, why was anything > left behind? I imagined everything would be moved? > > Maybe a few more remarks in the commit message? As replied to Nicolin, because it is a module param, I am ok with adding this in the commit message, or passing disable_msipolling as a function arg and moving the logic. > > > > + if (smmu->features & ARM_SMMU_FEAT_HYP && > > > + cpus_have_cap(ARM64_HAS_VIRT_HOST_EXTN)) > > > + smmu->features |= ARM_SMMU_FEAT_E2H; > > > > Why is ARM64_HAS_VIRT_HOST_EXTN left behind? > > +1 > > And the TT_LE/BE and S1/S2 checks, and ... > > If kvm doesn't want to dev_err log that's fine, we should able to > #define that away too shouldn't we? And maybe it does want to log? The hypervisor can not print to the kernel console, so dev_err() will not compile, I'd rather keep that outside and let the caller decide what is a probe failure and print it's own message that keeping the code and stubbing dev_err(). Thanks, Mostafa > > This seems pretty close otherwise > > Jason