Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp824396rdb; Tue, 19 Sep 2023 11:08:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGN2nzeBwoW2EwxpVpdQKwX4clz1PpXxbNhcBWVDssB9DsIRfX0RX5ogDxcfVv4sNAMY8oz X-Received: by 2002:a05:6a21:3e04:b0:153:3d8f:cb29 with SMTP id bk4-20020a056a213e0400b001533d8fcb29mr294544pzc.24.1695146918532; Tue, 19 Sep 2023 11:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695146918; cv=none; d=google.com; s=arc-20160816; b=S2fnIF0etGCSUStE6VOcWloAca7GhTSMFobXD7/piODR8UJSKjw0IeoA0OAWphN6Dn JbUcCxFOlTP1d3T9q9SHsql1yfvNYBVF0xckGUJt1OPrFBpdabs/h3yLL/v4N/qCCn54 22qvVjdxmgWS8OEQoLT4Dh1NcXWZqmrPumNHbBIMCToTP9xCby31DtjfQ7kOXMW77gY8 8mmnUfu2RtQW/ZM1wOW1+nOAhv7l+37iiEOzLMqW8EDgBwAdZ9UQv3FBUBYuXGY2D0U9 Umb7rApCGjwu2K+LcmNBFPE9IfPRs4ePQHLjYCYn1FKih8254gRYPG6BHA0gszUnyvI6 OeEw== 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=4ng+0z86XaTtCvEewZIwczddiB8TJp72PgLWFpAWe54=; fh=KYU1pwbrkTQBn9AgqPRD8/CJjSdVfWYVo74U1kBSwHM=; b=XnvtJrwA+o2NyBQroqbEDp391SPkKWdCL2/uWwnsn7003alZJHxa6xcZHwfj5DeoGd o9idzYK0zYel4QlLN1X6dyd+8QNiLbngysysHDNhg76pMD6/aF1T26e4drh+ZMqMEQXP V9Io1JcxwrZ7POwihcaHY17cYRQwXu/G09xevctKI10Vpds0hEXuBcA5IuZjtoNHyWig Jb4UxkbvzTHofV8lF1Vrc+UVuckntX1Rdcuv2w0XEZYvVdCRYchh3aT7mpwSlgCyyz9b 498F2sWiMayZuGmEP6WJHEDWYbQUyQTFT5kuX62Pl+LYLI5zgdZiNm9/b9aIwVDEy0WJ Rx+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f26-20020a65629a000000b00563d791d978si9622291pgv.750.2023.09.19.11.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 11:08:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C04D3812AD28; Tue, 19 Sep 2023 11:00:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232649AbjISSAT convert rfc822-to-8bit (ORCPT + 99 others); Tue, 19 Sep 2023 14:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231991AbjISSAS (ORCPT ); Tue, 19 Sep 2023 14:00:18 -0400 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA2A999; Tue, 19 Sep 2023 11:00:11 -0700 (PDT) Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-57acd4917f6so228676eaf.1; Tue, 19 Sep 2023 11:00:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695146411; x=1695751211; 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=FGnhbq+R2EZAb/x6yu0RGRdXqfvoA34iDXx6GRhUp24=; b=YdmJAnR6aAuzzF7ni0X2/2vxilkJrGscxdwyyCEVwo3iXrGsSH3YmP+5AWERSanicb IN50UvEQYetcZMN/ew24PHGDN5roEHgg7GJL2d4cstV5I61OCNCB82CGJCCzSf7WD8lR AJKmU0uTCkVm25ne5+DXZ0E0+bqhauHnjqqrxMLNJLq7K1sGDCdPAsUxL6Dflh5XsCvl BP8aRXUMuB0DsMjNBgMYhdlwgUDlWeqWexYd0PIZh7aF3kvx3RMA9zSX7kK89utmIxQk io1clZ6NQk3PJmJy2wXMjX73IvrDWK4UuedH1RLzncURa5xE306GcDSRN5gpDr54Tj17 VT9g== X-Gm-Message-State: AOJu0YxskWkvBL98bxY8Bo4nIvN3+IX+1HeTvVUX8MrQiLo9vfd23Lo/ j9w6VaBFLrVjN9DhTmBzTiQRny94oNbkLQFqp0Y= X-Received: by 2002:a4a:d103:0:b0:573:4a72:6ec with SMTP id k3-20020a4ad103000000b005734a7206ecmr284831oor.1.1695146410955; Tue, 19 Sep 2023 11:00:10 -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: <67c85f083201ed2cda2cab198b40141ad21912a2.camel@linux.intel.com> From: "Rafael J. Wysocki" Date: Tue, 19 Sep 2023 19:59:59 +0200 Message-ID: Subject: Re: [PATCH] HID: intel-ish-hid: ipc: Rework EHL OOB wakeup To: srinivas pandruvada , Kai-Heng Feng Cc: "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=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 19 Sep 2023 11:00:19 -0700 (PDT) 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.