Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>,
	Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [PATCH topic/core-for-CI 1/2] Revert "HAX suspend: Disable S3/S4 for fi-bdw-samus"
Date: Thu, 24 Oct 2024 13:22:48 +0300	[thread overview]
Message-ID: <87ttd1ssuf.fsf@intel.com> (raw)
In-Reply-To: <20241023211834.3370346-1-lucas.demarchi@intel.com>

On Wed, 23 Oct 2024, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> This reverts commit efeb42fe3b7c58abbe674515252cfdb71c09eba5.
>
> That machine is not in CI anymore, let's drop the hack.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>

Acked-by: Jani Nikula <jani.nikula@intel.com>

> ---
>  drivers/acpi/sleep.c | 20 --------------------
>  1 file changed, 20 deletions(-)
>
> diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
> index 4272cbc71ae89..c8ee8e42b0f64 100644
> --- a/drivers/acpi/sleep.c
> +++ b/drivers/acpi/sleep.c
> @@ -84,16 +84,11 @@ static int acpi_sleep_prepare(u32 acpi_state)
>  	return 0;
>  }
>  
> -static u8 max_sleep_state = -1;
> -
>  bool acpi_sleep_state_supported(u8 sleep_state)
>  {
>  	acpi_status status;
>  	u8 type_a, type_b;
>  
> -	if (sleep_state > max_sleep_state)
> -		return false;
> -
>  	status = acpi_get_sleep_type_data(sleep_state, &type_a, &type_b);
>  	return ACPI_SUCCESS(status) && (!acpi_gbl_reduced_hardware
>  		|| (acpi_gbl_FADT.sleep_control.address
> @@ -170,13 +165,6 @@ static int __init init_nvs_nosave(const struct dmi_system_id *d)
>  	return 0;
>  }
>  
> -static int __init init_nosleep(const struct dmi_system_id *d)
> -{
> -	pr_info("Disabling ACPI suspend\n");
> -	max_sleep_state = 0;
> -	return 0;
> -}
> -
>  bool acpi_sleep_default_s3;
>  
>  static int __init init_default_s3(const struct dmi_system_id *d)
> @@ -411,14 +399,6 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = {
>  		DMI_MATCH(DMI_PRODUCT_NAME, "20GGA00L00"),
>  		},
>  	},
> -	{
> -	.callback = init_nosleep,
> -	.ident = "samus",
> -	.matches = {
> -		DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
> -		DMI_MATCH(DMI_PRODUCT_NAME, "Samus"),
> -		},
> -	},
>  	{},
>  };

-- 
Jani Nikula, Intel

  parent reply	other threads:[~2024-10-24 10:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-23 21:18 [PATCH topic/core-for-CI 1/2] Revert "HAX suspend: Disable S3/S4 for fi-bdw-samus" Lucas De Marchi
2024-10-23 21:18 ` [PATCH topic/core-for-CI 2/2] Revert "HAX sound: Disable probing snd_hda with DG1" Lucas De Marchi
2024-10-24 10:23   ` Jani Nikula
2024-10-24  8:30 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [topic/core-for-CI,1/2] Revert "HAX suspend: Disable S3/S4 for fi-bdw-samus" Patchwork
2024-10-24  8:30 ` ✓ Fi.CI.BAT: success " Patchwork
2024-10-24 10:00 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-10-24 10:22 ` Jani Nikula [this message]
2024-10-28 20:59 ` [PATCH topic/core-for-CI 1/2] " Lucas De Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttd1ssuf.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=rodrigo.vivi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox