From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0910518E025 for ; Wed, 13 May 2026 06:58:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778655502; cv=none; b=p2b7WtobyjjvfX2e2tu1xgF6c4MCBfJYYQ9hQAvtkSLjvvmhQb+6RA76+002/2xz8Rcy2bZbJPRju3pU0fIUs+Ct7rEBH1d/vgExqwJo1vH5k0T+NtvrAqfvysjHxUAixyD7WOOxPI1iYWpWRm6LrhLdoieBXjkqV2Pbl4fbT2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778655502; c=relaxed/simple; bh=Cn5v4bqW2/MsQLPq1DIp33JPKtjj5gaVBtJoJzvhChs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Ymfpx8EjAnub3/BTk3+icvTSvE5voEIHx4ZoTuM0a47v7wfLwIdZ4D77KiTfmwIjtytitrbFyRoHBsTI4wknSnkAFiF/G5e/D6KU4jL+dYrKvQXDfjTBVQcOVii96PJRNfAhO2+1z3mrkBxtlT6U7mUZ2bkTSA4o4+xFOS8kjx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cOOFdvsN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cOOFdvsN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09BA1C2BCB7; Wed, 13 May 2026 06:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778655501; bh=Cn5v4bqW2/MsQLPq1DIp33JPKtjj5gaVBtJoJzvhChs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cOOFdvsNl3OndujbTuhwNoJBiADkICPpCGyTWNadteVnRecN73jOP+LElpuvZMISD 6/W8mf1WLGUty7vrqpl/5SvsvEfFQfQOa/7GUfi5UoJKTcw4yC8dR3zm6+Ib6cTaxZ nq654nlbKcktjKAGHROJY6Lpmv9BShPntMqFt0xD5Kg6NX2i6m9AibTTK0oYYbFSe3 l0PY2RB8YZiVXnzQqcR8c+RJuUgwpCRCHq81e1l3bkNkyIb9UBnHn0pO2iMDUMHmyR OP9wMhlM7lN3EQ24WAjdRVJs+aWEQr9xSCDA4fCM/t9J2o/roiQ68TyKFSmsYZh8GD L01zb+Uhi2eKg== X-Mailer: emacs 30.2 (via feedmail 11-beta-1 I) From: Aneesh Kumar K.V To: Catalin Marinas Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Greg KH , Jeremy Linton , Jonathan Cameron , Lorenzo Pieralisi , Mark Rutland , Sudeep Holla , Will Deacon , Jonathan Cameron , Suzuki K Poulose Subject: Re: [PATCH v4 2/2] coco: guest: arm64: Drop dummy RSI platform device stub In-Reply-To: References: <20260427061615.905018-1-aneesh.kumar@kernel.org> <20260427061615.905018-3-aneesh.kumar@kernel.org> Date: Wed, 13 May 2026 12:28:12 +0530 Message-ID: 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: quoted-printable Catalin Marinas writes: > + Suzuki again > > On Mon, Apr 27, 2026 at 11:46:15AM +0530, Aneesh Kumar K.V (Arm) wrote: >> The SMCCC firmware driver now creates the `arm-smccc` platform device >> and also creates the CCA auxiliary devices once the RSI ABI is >> discovered. This makes the arch-specific arm64_create_dummy_rsi_dev() >> helper redundant. Remove the arm-cca-dev platform device registration >> and let the SMCCC probe manage the RSI device. >>=20 >> systemd match on platform:arm-cca-dev for confidential vm detection [1]. >> Losing the platform device registration can break that. Keeping this >> removal in its own change makes it easy to revert if that regression >> blocks the rollout. >>=20 >> [1] https://lore.kernel.org/all/4a7d84b2-2ec4-4773-a2d5-7b63d5c683cf@arm= .com > > I wouldn't merge this now given that systemd checks this file. Could we > have a symbolic link instead for some time until systemd eventually gets > updated (years?). > I=E2=80=99ll add this in the next revision. static int create_rsi_compat_link(struct device *target_dev) { struct kobject *platform_kobj; /* * target_dev is: * /sys/devices/platform/arm-smccc/arm_cca_guest.arm-rsi-dev.0 * Create compat link /sys/devices/platform/arm-cca-dev */ platform_kobj =3D target_dev->kobj.parent->parent; return sysfs_create_link(platform_kobj, &target_dev->kobj, "arm-cca-dev"); } -aneesh