From nobody Thu Dec 14 00:09:50 2023 X-Original-To: dev-commits-src-main@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 4SrCQp3J4cz54WgC; Thu, 14 Dec 2023 00:09:54 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SrCQp2bqwz4H8w; Thu, 14 Dec 2023 00:09:54 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702512594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=X7ITpZW7bYjchsIAqB2iuqWS4J3RcsaZgC6kPhxKYd4=; b=pv6n02SqdcVe+vo4osmPaH1ZiEt/i6yMU/d+tjV+KtTKO+EQySKSb6mXb63ewqrtx8kdTo vYmB7V2JUNaZzujiniJQwNG6pdoz9sadfUelSBFVr1i4VbalX0buQm+9wUKI6VVVhpD3yP TxJ+C+vdiBmj5LRSym4vuYSqqgJIbv5QENQ/GPghd8NEBy1s4t1lIgBjNd151xss5CEA8Q ZPJ6Ty6VK4slmXGCMiRQ1LJUFYcn+xhBvQThtd6JXRCpE1H5hAxqkORl1cfyeKoiexxbiR VItuAApt0+caxIUXRib25QEtPtijV4eMJ93nfsa2AnGvdiuhbqkbK6ffeJBmCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702512594; a=rsa-sha256; cv=none; b=Dq9UgzX1o7k2yHNyiGJn/Dr8if0o4rkP1TSXSh2BkZvKxviZ7QoQh10oaV6gTg85kXbsWE mqoeob+wKYM4DaqVMI5N+IkkQRfwvKU32EcQNSbnEi1noFjE1TMK7hIbBdwVWSNlej5H5+ e0iHH5E0zOg2x4vHlBSdruwBfI/Qgv4MJdBD3/rKX0DryRyaiKd2aGZt+R/gJxwufwLnNU qLYQvqaJWWU1YCY1mWDf8XCl5iKHRIqgX7QqhxH70MyPMzK20/5YPLe5yPVf4YFgr1UOVp J831rS+DGoZPQ63ACF9mL6K9F4QWZA/DDoyeLXh0ZXvvhsb5z7cXJa3PhoinXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702512594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=X7ITpZW7bYjchsIAqB2iuqWS4J3RcsaZgC6kPhxKYd4=; b=qea91u/HO5zucXpzKIL/Aah4+BcnXnjIBLYeWe7Om+wN8RhCk/kTscUtPjA2TfpHyjrgvs UUqI6wbDJeLmWlJFJo25jYYBUXnK2xOd1Jjsua60BXDdfDeuTzRBYteaWMDMJ6ghhGLkYO 0Vup70WSrESNF9tXv4LUBXcQe4iwpAjPg5C1EU1CdQtIIOT3kDSCvOpzpap4U3fNIonD+d 0SAQs1ORz5mAz/eqiq5uhfc4Nc1Z0PKlvF+2LCb+/oyjsIdQVQ8cRtcsa6a1zKxOvM6Ra6 dvUtm200o3aU3ip8Cizd8je84qYUV2Ef+qsfzO9VTLs4e18PwWcuOUyq5ngy0Q== Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SrCQp03Hwzwy; Thu, 14 Dec 2023 00:09:53 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 42BAC8D4A162; Thu, 14 Dec 2023 00:09:52 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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.sbone.de (Postfix) with ESMTPS id E25B42D029D6; Thu, 14 Dec 2023 00:09:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id KzZfr43RHmYY; Thu, 14 Dec 2023 00:09:50 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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.sbone.de (Postfix) with ESMTPSA id A8E082D029D2; Thu, 14 Dec 2023 00:09:50 +0000 (UTC) Date: Thu, 14 Dec 2023 00:09:50 +0000 (UTC) From: "Bjoern A. Zeeb" To: =?UTF-8?Q?Jean-S=C3=A9bastienP=C3=A9dron?= cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 59cbead6b15f - main - linuxkpi: Add support for `suspend_noirq` callback in `struct dev_pm_ops` In-Reply-To: <202312131828.3BDISons019199@gitrepo.freebsd.org> Message-ID: <3rrqsr57-255q-pro4-5rn3-o725214q07n7@SerrOFQ.bet> References: <202312131828.3BDISons019199@gitrepo.freebsd.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1098556516-716910007-1702512590=:54546" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1098556516-716910007-1702512590=:54546 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 13 Dec 2023, Jean-SébastienPédron wrote: > The branch main has been updated by dumbbell: > > URL: https://cgit.FreeBSD.org/src/commit/?id=59cbead6b15fd2320fa0a98dc680aef5d6e1438f > > commit 59cbead6b15fd2320fa0a98dc680aef5d6e1438f > Author: Jean-Sébastien Pédron > AuthorDate: 2023-12-09 16:24:20 +0000 > Commit: Jean-Sébastien Pédron > CommitDate: 2023-12-13 18:18:47 +0000 > > linuxkpi: Add support for `suspend_noirq` callback in `struct dev_pm_ops` > > [Why] > This callback is being used by the amdgpu DRM driver in Linux 5.18. > > [How] > The callback is called after `suspend_late()`. > > Reviewed by: emaste, manu > Approved by: emaste, manu > Differential Revision: https://reviews.freebsd.org/D43029 > --- > sys/compat/linuxkpi/common/include/linux/device.h | 1 + > sys/compat/linuxkpi/common/src/linux_pci.c | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h > index df06b356e092..7a5d813063a9 100644 > --- a/sys/compat/linuxkpi/common/include/linux/device.h > +++ b/sys/compat/linuxkpi/common/include/linux/device.h > @@ -81,6 +81,7 @@ struct dev_pm_ops { This struct is embedded in driver source code in struct pci_driver; that means all LinuxKPI based drivers need to be recompiled. In case you MFC please at least append at the end! > int (*poweroff_late)(struct device *dev); > int (*restore)(struct device *dev); > int (*restore_early)(struct device *dev); > + int (*suspend_noirq)(struct device *dev); > int (*runtime_suspend)(struct device *dev); > int (*runtime_resume)(struct device *dev); > int (*runtime_idle)(struct device *dev); > diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c > index 99750d5ced26..852cec9cdc94 100644 > --- a/sys/compat/linuxkpi/common/src/linux_pci.c > +++ b/sys/compat/linuxkpi/common/src/linux_pci.c > @@ -643,6 +643,8 @@ linux_pci_suspend(device_t dev) > error = -pmops->suspend(&pdev->dev); > if (error == 0 && pmops->suspend_late != NULL) > error = -pmops->suspend_late(&pdev->dev); > + if (error == 0 && pmops->suspend_noirq != NULL) > + error = -pmops->suspend_noirq(&pdev->dev); > } > return (error); > } > -- Bjoern A. Zeeb r15:7 --1098556516-716910007-1702512590=:54546--