Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2346679rdb; Thu, 21 Sep 2023 16:24:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhrbQsg19lKoS60U1DEHmFUeY8ZJ1PgdaUoA7+7IA3mKRuc50wZNt067ZIhkz5kufqSDmF X-Received: by 2002:a17:902:da86:b0:1c3:e2eb:f79d with SMTP id j6-20020a170902da8600b001c3e2ebf79dmr1550243plx.8.1695338675366; Thu, 21 Sep 2023 16:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695338675; cv=none; d=google.com; s=arc-20160816; b=pqxNV5a10P5gCbtei7Ukafwe84iKxqgMMpodr7LSYweeAoQDruu9bHrDqnk8L4aHTy rfcvYRtgKj+HbiRSHep3wTG3mOUrQIw/tgat1rvZ8RE8kjpGFFOANiCskFAjUcsRPT0P yqkpJt9gFeotA9j+8OHQnWRMN5i2Wn9Kp1TDEy5NGWAp6rN/Gmt1qgFnqdLGEc74F/8i 7fDWjLHnwisN9Xds1Jj45A1IhPOm7ipGZUYg4N9H5Ii0aD4VDGlaL9A7WerNm2Jp5gjW 9xfVK3VVAYKpDP3zJv62qTowlfp5i+8r9vsupCcuXZbGP/ewYWnd9rDjzzKHNi0/EJOF 2i4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=eFpzU47BxpPI753a0iNwesuNvRzfaMIx/dH1MDLyWVw=; fh=cvmyZUyMDCWl1sr814RRA1rzusoHsL4uOo/UkcfWAMs=; b=wF975vqRnvoaGj5L3u6OPgUVTNNinRxpHCS9OKemp2yJPrnUUnVIjiuJUfHsiRW3Ik 2kRnSPN0qCqseADcU/3yJolB8yYXnefWvZ9bLBKTCacrEKa/WUdq6PMakwDVsfK2vKzr zzwfACWTgYzAut6epkV4/TQHeMkXWEBQCimV9I/9698eMI99JipoLSenEuJiyXfC7pHd +dJmj4H6T7q+CSpZawJTjxxNbZQIgCv/EYBhjJsQGqPChmfQSRM2mkuB7ulx3HxjzpWO WxY58tr1lva/FBykGEXHcOdZMGuemfaGm3CFrD+lkvcsbCCgXylpMrPb02nkaIq37XWQ tTLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id s20-20020a656454000000b005783367f97fsi2440376pgv.342.2023.09.21.16.24.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 16:24:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8BCC78339380; Thu, 21 Sep 2023 13:36:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232036AbjIUUgK convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Sep 2023 16:36:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232256AbjIUUew (ORCPT ); Thu, 21 Sep 2023 16:34:52 -0400 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53AF473547; Thu, 21 Sep 2023 10:33:03 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-59be81cf0d8so2356287b3.0; Thu, 21 Sep 2023 10:33:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695317439; x=1695922239; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n4u4Ae4qmn0j8vaZq8VmeR6efjSH5qgFemSVQPrsJHw=; b=IeSZRoz0xYezONjfazpVXRNfgFOYVTLPNTLaRcSeMX/ChQiXY9rIR+q8jiG9UwewH3 urqstrUwTjnJJKLN58Ek6jzfbnEDLzTqDv4K5/DjmGQCdr+tFQvzbkDm6Xj0oaKuQpVo P1gvp4jKK2Gtjx3F4COC6HMj/nHbxqWbQolYDkNQxrGrXqjNQ+uBa5GTjnWvFAnSGxgR o04VYvGFj29h8LKfVRIliHwxjRodCr75sOEn5GgXMqTBFuc5AfoEENLuCfCs5jfmCPxI vBAUhYEAu+WupKjrc8FRDAUnne6Gi4xO82pGXroFReESVshDgnnMvtgRpOKBuXQe3xTs YUKA== X-Gm-Message-State: AOJu0YwOe6Zxht7KScDLO8EQKvne7TK9InHfxquIheCSxnN2zRQk5HaU 1z/CsGW9+AVR7m8/R1UutP9BkAe01+w1z9HVNooEMNlL X-Received: by 2002:a4a:2a4e:0:b0:573:3a3b:594b with SMTP id x14-20020a4a2a4e000000b005733a3b594bmr4666981oox.1.1695288795434; Thu, 21 Sep 2023 02:33:15 -0700 (PDT) MIME-Version: 1.0 References: <20230914041806.816741-1-kai.heng.feng@canonical.com> <7b45ac2ed091497b4e21a6a5c19956161175ba16.camel@linux.intel.com> <67c85f083201ed2cda2cab198b40141ad21912a2.camel@linux.intel.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 21 Sep 2023 11:33:02 +0200 Message-ID: Subject: Re: [PATCH] HID: intel-ish-hid: ipc: Rework EHL OOB wakeup To: Kai-Heng Feng Cc: "Rafael J. Wysocki" , srinivas pandruvada , "Xu, Even" , "jikos@kernel.org" , "benjamin.tissoires@redhat.com" , "linux-pm@vger.kernel.org" , "linux-pci@vger.kernel.org" , "Lee, Jian Hui" , "Zhang, Lixu" , "Ba, Najumon" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.1 required=5.0 tests=DATE_IN_PAST_06_12, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:36:35 -0700 (PDT) On Thu, Sep 21, 2023 at 8:08 AM Kai-Heng Feng wrote: > > On Wed, Sep 20, 2023 at 2:00 AM Rafael J. Wysocki wrote: > > > > On Tue, Sep 19, 2023 at 6:54 PM srinivas pandruvada > > wrote: > > > > > > On Tue, 2023-09-19 at 15:36 +0800, Kai-Heng Feng wrote: > > > > On Mon, Sep 18, 2023 at 11:57 PM srinivas pandruvada > > > > wrote: > > > > > > > > > > Hi Kai-Heng, > > > > > On Mon, 2023-09-18 at 09:17 +0800, Kai-Heng Feng wrote: > > > > > > Hi Even, > > > > > > > > > > > > On Mon, Sep 18, 2023 at 8:33 AM Xu, Even > > > > > > wrote: > > > > > > > > > > > > > > Hi, Kai-Heng, > > > > > > > > > > > > > > I just got feedback, for testing EHL S5 wakeup feature, you > > > > > > > need > > > > > > > several steps to setup and access > > > > > > > "https://portal.devicewise.com/things/browse" to trigger wake. > > > > > > > But currently, our test account of this website are all out of > > > > > > > data. > > > > > > > So maybe you need double check with the team who required you > > > > > > > preparing the patch for the verification. > > > > > > > > > > > > The patch is to solve the GPE refcount overflow, while > > > > > > maintaining S5 > > > > > > wakeup. I don't have any mean to test S5 wake. > > > > > > > > > > > The issue is not calling acpi_disable_gpe(). To reduce the scope of > > > > > change can we just add that instead of a adding new callbacks. This > > > > > way > > > > > scope is reduced. > > > > > > > > This patch does exactly the same thing by letting PCI and ACPI handle > > > > the PME and GPE. > > > > Though the change seems to be bigger, it actually reduces the duped > > > > code, while keep the S5 wakeup ability intact. > > > It may be doing the same. But with long chain of calls without > > > verification, I am not comfortable. > > > This can be another patch by itself to use the framework. > > > > I agree. > > > > Let's change one thing at a time. > > > > > But you are targeting a fix for overflow issue, which is separate from > > > the use of PCI/ACPI framework. > > > > Yes, let's fix the bug first and make things look nicer separately. > > Right, please use the fix from Srinivas and I'll send a separate patch > to make things looks better. OK Srinivas, please resend the patch with a changelog etc.