Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6927563rwn; Tue, 13 Sep 2022 10:59:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR6GDDm5iXB4vo8cbu3579CcjT8szd44WOjZdywZtSKy6YlQawz0H5mZFOZoJNaLsxNfaHa2 X-Received: by 2002:a63:5242:0:b0:438:a092:acf with SMTP id s2-20020a635242000000b00438a0920acfmr17448688pgl.412.1663091992935; Tue, 13 Sep 2022 10:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663091992; cv=none; d=google.com; s=arc-20160816; b=cHYJb4jG1oyH8i2LJ3eH5/bmN3Y4oYLPnvErhM9PHwVsg5y0Gw6zyqNkixomUDdt1E oaXcHT9GgOJ/e4OQGIGKVL/a1Px1pbbwyp/uiCuNHC2SFb8sYWjzzyEY6eCVvXUXtlpk TMS5B5g+jrh3zDliV3evFoUx4pb/lS3RVGCJO620Tj2Oh+SZda6O1Lz+lNKnBCFaQa4j g3X/Wsr32HAsCsue/uNroKhp9NFfso6jK6eIG67WNudLma+8D7ZT94PivN9ch99lq0Gr KhGLEuZ30yAECyyJEaBfM91RowsMlyQEdLgt0s6Z0aztPg8mgLkp4vdGpcHwXPoUMRcN rlTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1i7O2Iok1YRMIALmDKILSSa+PDHh/TMXb1061x3zYsE=; b=p5Qm4nBSd4HoqtSBrIWQ2XboZ2Zd/NEXACWdo+uVKcOOZ/2FWq6MoY9310hjEX1yF7 ta8SqfCEMD+9h5QDD7EsRgL34jDAVDB2I1jTCw4BpixHVGpmtUDd5YU939gYCEizhtjw Nk2hyyL7C9IE1rSqdelM8mvLo1PctiNedkFRbK+si+QcCK2ZFn+iINsCKZaLTWDheTvU zmcQejyvT2lBm4d/cMMuWMR8GKKKcTOowh5DYQSnrFvnxkgO5bgYzUmAuPT1DuUiGoqL SamzsCL86TpNOP90lbCEZ9OKRFMUbQcqV8AxmY/mR7t4tT0NeJWz/7KxyBYpHPa7Yh+B nNDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CnBAUl1b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020aa788ce000000b00537fd74ca6bsi13140698pff.54.2022.09.13.10.59.41; Tue, 13 Sep 2022 10:59:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CnBAUl1b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232326AbiIMRtO (ORCPT + 99 others); Tue, 13 Sep 2022 13:49:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233638AbiIMRs2 (ORCPT ); Tue, 13 Sep 2022 13:48:28 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67656785BB; Tue, 13 Sep 2022 09:46:36 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id ge9so383250pjb.1; Tue, 13 Sep 2022 09:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=1i7O2Iok1YRMIALmDKILSSa+PDHh/TMXb1061x3zYsE=; b=CnBAUl1bzznqlLH+uIrXNiplMZxlYvpJAvAQjQKLJnvplkOZ2ynXM+0h7XW+HluZ2w qy76aDA63qVxDizV+hCBWv04bup9GqEVooYu/yevF4+tJwFeq8Zpiv1AXRTMlDCerIve SZs1dNNwRC8Ux7M9IKhF42mUNRdOkiRt3iSpQLYspStIdifZuYs4tq53kILQhnA+MCOg Az9PX0hUE+Ge2HyXVHDa0ixVyi/G2nDNUb2nEtVc6P4igWrlLrNSgEgZn7kvDlcBRjFE QI3dm2LL9W6aacDBHgLhi8GoFbpjTVfurem7XBNjxde8VNzzf2wYhznDTLfqXvZjb+UG a7aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=1i7O2Iok1YRMIALmDKILSSa+PDHh/TMXb1061x3zYsE=; b=MAPBC3+YwVslnWfWLCB9wgjhx5h/Oecqbz+KYcTOTYn/CtrgfsfOaBCXTgl3I70L9Z j05tkm2gkhZSJVFupxgdSl2TlEpbmfWyFgo82UGvEQK74VpEZIlltKh+FAcAiSirMtrN 7JsRzAlp5egh1Tw8Asv59bT5UHNEFYBltRH2W3SOyQrTI2PX4k3L+cD/HCkzj3Pc/hxZ HRFHL+PBycNRkoU7QH98j8OaO4pe+Sl01c/95ZUfr4ybIMxWIaHgD7B35MHGphLlMhlv CSQm0b80pKq2pPCqdLFND6i1Fd2ROvXULkUFbjhnZ7lncJeLUWhgJoUC0mT4VzI8fSOk vHSw== X-Gm-Message-State: ACgBeo2PbEFNcw/gaXCKVzXx6An/0YzwVYoKK/2VOqX0KBfnLSrkt5Tu m2UQ4GckFIv6dzseFDRHywc= X-Received: by 2002:a17:902:e881:b0:178:2a6f:bc72 with SMTP id w1-20020a170902e88100b001782a6fbc72mr12859092plg.93.1663087595868; Tue, 13 Sep 2022 09:46:35 -0700 (PDT) Received: from rog ([2a0a:edc0:0:701:a220:c777:e1f2:5de1]) by smtp.gmail.com with ESMTPSA id y1-20020a17090264c100b001782580ce9csm6707664pli.249.2022.09.13.09.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 09:46:35 -0700 (PDT) Date: Tue, 13 Sep 2022 18:46:25 +0200 From: Philipp Zabel To: Mario Limonciello Cc: rafael@kernel.org, linux-kernel@vger.kernel.org, catalin@antebit.com, travisghansen@yahoo.com, Shyam-sundar.S-k@amd.com, Len Brown , linux-acpi@vger.kernel.org Subject: Re: [PATCH v2 2/6] acpi/x86: s2idle: If a new AMD _HID is missing assume Rembrandt Message-ID: References: <20220912172401.22301-1-mario.limonciello@amd.com> <20220912172401.22301-3-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220912172401.22301-3-mario.limonciello@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mon, Sep 12, 2022 at 12:23:56PM -0500 schrieb Mario Limonciello: > A mistake was made that only AMDI0007 was set to rev of "2", but > it should have been also set for AMDI008. If an ID is missing from > the _HID table, then assume it matches Rembrandt behavior. > > This implicitly means that if any other behavior changes happen > in the future missing IDs must be added to that table. > > Tested-by: catalin@antebit.com > Signed-off-by: Mario Limonciello > --- > drivers/acpi/x86/s2idle.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c > index a7757551f750..a8256e5a0e8a 100644 > --- a/drivers/acpi/x86/s2idle.c > +++ b/drivers/acpi/x86/s2idle.c > @@ -412,7 +412,7 @@ static int lps0_device_attach(struct acpi_device *adev, > if (dev_id != NULL) > data = (const struct amd_lps0_hid_device_data *) dev_id->driver_data; > else > - return 0; > + data = &amd_rembrandt; Ah, please disregard my suggestion in the previous patch. I'd still use: if (dev_id) Reviewed-by: Philipp Zabel Tested-by: Philipp Zabel # GA402RJ regards Philipp