From nobody Mon Dec 8 22:58:39 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dQHTl5GPNz6KWYn for ; Mon, 08 Dec 2025 22:58:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dQHTl09Hwz3Pcd for ; Mon, 08 Dec 2025 22:58:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-4edb6e678ddso67489401cf.2 for ; Mon, 08 Dec 2025 14:58:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765234730; x=1765839530; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I+VzbmorW+WJb6jdRDJLXlzMwamVlJ/JBiSr8kIWTGg=; b=Kr9nHKsE95msTZYHu/mvS+vh83NFLHIw7ekQmpiW8APaQ5crU57WkGapNllgTpVZL6 hJqhlILvA9jJOSOGYIq/8jXc6ZdcVNhim9Hd9rfJLfiLid1L0/DDAIjIVpJO19U7qZf5 JaBruW9S5drtYe31vItx5Gt6sW4yhzAWaPDM7I0JzT3zy/0J6SEwuLTUSvibpyHmNPHS l67v3VekwEnqG0dt7OrfqQPnokJxbgFxciGbExVr7dU3PLPKY8YMT0Kfb5kQBweiKh+o zMPsVtMv/NLLmypvZa7wIErZ5HY5zpDNXQ7fFkw6bcJBCMpRULQOCY6Fr24PYSTtXZ43 t/Fw== X-Forwarded-Encrypted: i=1; AJvYcCW59RHN7r+IAwCUvu+RkMbciPpDilA9mESYOwGfDpyEmaLGAUWL9o4annW19uEQtA3twQuzz2nLzAdhkIWV1oaALjVv@freebsd.org X-Gm-Message-State: AOJu0Yy9eFeqqqRVi37HpHTNCwUEmok9dS40DZxtB2/LhQLjXcVdnR1W 8VJibW5PnNmdq95M7EtS0hZD2Wr9jsBPSpuEYzIkYI5NMYhI2pT8q2sY3RhqylXFd4DeLoctH8A OdYQ29jrDuMAQgIJcAIP00coMaYjJy5I= X-Gm-Gg: ASbGncsaMnPQ5x53GDcSR1FRSVPgDqQubW1ElLMhkHLs2l/4bb3u8FA7CsVKOYD8i7h LTEmu2MBkbowY7Mue8+sYSOG6J2Vuf3q/w6L3GJP11vgqRDNqPHHVWrWAPkGKcMMIiv0ezeKLg4 1Xk7UGyNv/P8iHWCglsmZOo6eKV+oNzpsI/PJVuxXPMxydTm9CAKpZH/qAn3ibADhcGpVt5/wyP kxNU7ZrKVQypFjPV3PAnrhpxl5fg1jxES2vVXnWQEQ5L/xTpM17rX0OspwVdRR9/gHAbKEBkn4j O3MqiW8+tuSfCe/+DQVatUITtposTA== X-Google-Smtp-Source: AGHT+IHWteIPZTsMBDzUbxfZ2PDEv0JNCFAnRZBBkbd1fvjec17Cpvqv/LsfR7w1MEDj9M4ymxz6FOAayA+IAklaUtQ= X-Received: by 2002:ac8:5850:0:b0:4b3:3b2:2b4b with SMTP id d75a77b69052e-4f03fc51fa5mr126887531cf.0.1765234729827; Mon, 08 Dec 2025 14:58:49 -0800 (PST) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 References: <693750e9.387bb.3a5268c@gitrepo.freebsd.org> In-Reply-To: <693750e9.387bb.3a5268c@gitrepo.freebsd.org> From: Adrian Chadd Date: Mon, 8 Dec 2025 14:58:39 -0800 X-Gm-Features: AQt7F2oiL6Pi7lxwKVuUkf-WuYr9CIiDenUa8Kri0CDwPuYhtQPC1jJwBkSygnY Message-ID: Subject: Re: git: 5287dd47b5b6 - stable/14 - linuxkpi: add stub implementation of pm_vt_switch_(un)register To: Austin Shafer Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-branches@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dQHTl09Hwz3Pcd .. does it? There's a sysctl to turn on vt switching on/off for suspend/resume, no? -a On Mon, 8 Dec 2025 at 14:27, Austin Shafer wrote: > > The branch stable/14 has been updated by ashafer: > > URL: https://cgit.FreeBSD.org/src/commit/?id=5287dd47b5b643baba645cde51bf39f787c738d6 > > commit 5287dd47b5b643baba645cde51bf39f787c738d6 > Author: Austin Shafer > AuthorDate: 2025-10-28 17:03:18 +0000 > Commit: Austin Shafer > CommitDate: 2025-12-08 20:46:48 +0000 > > linuxkpi: add stub implementation of pm_vt_switch_(un)register > > This adds empty implementations of pm_vt_switch_(un)register which > are used by nvidia-drm. We do not need to specify anything here as > a VT switch always happens on suspend/resume. > > Sponsored by: NVIDIA > Reviewed by: kbowling (mentor), emaste > Differential Revision: https://reviews.freebsd.org/D53400 > > (cherry picked from commit 75aa13c64aba71f6f26d05e8fcf96e3862d44cde) > --- > sys/compat/linuxkpi/common/include/linux/pm.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/sys/compat/linuxkpi/common/include/linux/pm.h b/sys/compat/linuxkpi/common/include/linux/pm.h > index c8d943027909..932697e0eda8 100644 > --- a/sys/compat/linuxkpi/common/include/linux/pm.h > +++ b/sys/compat/linuxkpi/common/include/linux/pm.h > @@ -97,4 +97,18 @@ pm_wakeup_event(struct device *dev __unused, unsigned int x __unused) > pr_debug("%s: TODO\n", __func__); > } > > +/* > + * We do not need to specify anything here as a VT switch always happens on > + * suspend/resume. > + */ > +static inline void > +pm_vt_switch_required(struct device *dev __unused, bool required __unused) > +{ > +} > + > +static inline void > +pm_vt_switch_unregister(struct device *dev __unused) > +{ > +} > + > #endif /* _LINUXKPI_LINUX_PM_H */ >