From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 CDB42497B99 for ; Wed, 23 Sep 2026 12:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790166083; cv=none; b=d0OJSXRnMpzLpVJTSLuxVdUuNdx8DdUnLz8dORydGkppWEouP32tC3ikGh/fqEgfz/t+q2bpK74ViR4OJoUZhgE7NucAdDe9eWB6Mzk/QsZS/akpB0WZxND2Ojf60QqNjOlhZmvr88fZV7GrE24LlNx262UVQ/B+5eccNe2CRYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790166083; c=relaxed/simple; bh=bQcH3jTKNmXdXEb+sr4yWEqfbt2vZeJTXfNoUGfU04M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tOm//WAaTwrXlCHnZ5PP616dsTjPmIr7PKvICkcGd1GRoCLSVuotA0QJxrZiUCD6Z6fv/u9ZaGAZ7Zp9mTMao62+CtkdOjayC++MwNZehs57r9KonJihhXKhgRnD6WivwfsuiSCiXy8ItLAZ31ZmAehJUZ6rWfPcQEKyaRWvvhU= 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=RRLFY0xa; arc=none smtp.client-ip=209.85.128.46 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="RRLFY0xa" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-49e6425f96eso41805e9.1 for ; Wed, 23 Sep 2026 05:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1790166079; x=1790770879; 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=6u3N2T6sQi1Z1c8x0CoJeove0ost1XCLW14esiat9kw=; b=RRLFY0xa+Nz+QexxEVXO1kGxW5u7MPJ49RJZrMdxNxGhvA5mL1PeB7EarMbp+mcziS Is5u8uNcXXsk656od/HMhnoDIMsrmctq570Yt/GGPRFR8VsCu14Ell3yX52pg7SVLlcG Qc2S7SS9UTJJ6KJqaNdetAhxxO5Wzt8jwbgbPIADRqdk3OKEkdbwoKT6oAU4QFy4XK9l +dohjX29qTbbpG6SAH8yeC4zvN5egm12TkFjPbcSFGgWKn0hS4cuzWgMFuGlRL/tMgmG smGvpT1sf69RUD7T05vbOtYqSvaajGZLgiyHrnco16Ln6rKpQkmBocFmY9FCL2+z+a9A W6bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790166079; x=1790770879; 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=6u3N2T6sQi1Z1c8x0CoJeove0ost1XCLW14esiat9kw=; b=Lj810moloNhEIMVwnaUirKf4eli3hX5VNBY3dVFfMVnz5Jzb76iGzVClI5cbLLm8AN R+hRpvrTuQklHHstS5IB4kFMjSlN/TLzW/A8o3v4LcfpmPFIHTkimZ4LKZpkycPHyA5e FkV2ZvdVf2Jml/DK9e7QI/kRalVr1Q0HdBy3xFmZ9hBGIY1Gp2hVQxjji3q6mboyFsBS lxKocQQZkodcaW6S9eYhL5CYPV270hTrhUxdqgkHEzxjiB1AamBDAhMu1IqjnSNTg20N Og32UzyUBiBRSzURmArZ1VOc/BQlSJuk0RWagR/E+Pch2+x065hi4ZHGIQC/eZvWAoHD Fckg== X-Forwarded-Encrypted: i=1; AKwUvByrwEcG1zOCZl4OlMuEXpVY1baC5iacnUsfMvAjKpqzfF1IGgQ46e9DKLht6hM9sGCk9bLBzg==@lists.linux.dev X-Gm-Message-State: AFuF++m6qo788UTt+jAg954FpglMsBc6dy3vmTP/jjb14BhrMNQn9aie YlVX3factxSBo4nxktyJ4WGEsHfyNAI9DovT3lKtQ1IzPOW9140pmCT1pwPS3H26Bg== X-Gm-Gg: AYBFou0jCiI18E0LmleIGNc0C7iyTjOTI8CJZsXwd2U/P1oX3JYTAMiWAsOGL5Tyk2V LNxlBTHeCxxf8++6WSE47w6nERgAqJ0EJLYHrOUWHcMyzuCpZltcae93sdqCulN3EYJLUwnipeQ V3InRcT3UYmyuUxVZxP8si3Q0zpxu5ty2e7LlnofwwnXxkei9ze5qCQLkyABsqoDNVDMV7uzVmF vIYnv0cnhgZhRrVxsnnIFmqjRPmhv/OXjxxrNQO8tvYnHQy09RJ3yYY6hYhD0O8tgOT/XU8NKGN qmurres/QOUMaiwMSZ2F+EfGDmXlgjkkvmsVcqsiM2sTiWC/6qsxzvuhBCRBwCZUh4VnTeoQpYf KqPlonwBMnC+iLB8F1UbeY6a4/bUIrkXnbGevQGQ67P3AQXDJcWgg9R0A6McehG5ZnTJM8sAgIV z+9OYx+OLxbO9aedhtnaDsNW7zo6Nf+H4/INcTT0e80dfAWm6Ro9XhJq10Ql5TfqhaBtFWAsVPu U2SBUIm3sc/boxwjYCSzEibXBvMuOmZPBw/EOzv X-Received: by 2002:a05:600c:a415:b0:49e:65b0:7b7c with SMTP id 5b1f17b1804b1-49fe0c3692cmr754895e9.7.1790166078185; Wed, 23 Sep 2026 05:21:18 -0700 (PDT) Received: from google.com (250.192.189.35.bc.googleusercontent.com. [35.189.192.250]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fde1c159esm82068375e9.4.2026.09.23.05.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2026 05:21:16 -0700 (PDT) Date: Wed, 23 Sep 2026 12:21:13 +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> <20260923115501.GD2545495@nvidia.com> Precedence: bulk X-Mailing-List: iommu@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: <20260923115501.GD2545495@nvidia.com> On Wed, Sep 23, 2026 at 08:55:01AM -0300, Jason Gunthorpe wrote: > On Wed, Sep 23, 2026 at 10:13:31AM +0000, Mostafa Saleh wrote: > > > 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(). > > I'd rather stub the dev_err than split it like this. Every driver > should still do these checks, it doesn't entirely make sense to omit > them from the pkvm flow.. No print, fine (and really, pkvm has no > tracing, printing or anything?) Tracing is supported, trace_printk() might be coming soon to upstream, but console printing is not supported at the moment. > > As a stube I'd do something like arm_smmu_err(smmu, "blah"); pkvm can > do whatever with that. That's ok by me, we can define those next to the struct typedefs for each one. Thanks, Mostafa > > Jason