From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BA26C433DF for ; Wed, 14 Oct 2020 13:46:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF9F922242 for ; Wed, 14 Oct 2020 13:46:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GSt/Demy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731375AbgJNNqR (ORCPT ); Wed, 14 Oct 2020 09:46:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:54241 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726459AbgJNNqQ (ORCPT ); Wed, 14 Oct 2020 09:46:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602683174; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wz5wOwKo0yVq73Er/y/1PB95j1y0IW2kymLlsiYsZYA=; b=GSt/Demyp72pe5LbLe/aj18I3SQJr8ziqxc9FOjmXuie95XlHuzBtVeSWRtJ4sZfXpIap5 zpQGRTKNRC5o12pHevmAz6RDuS1pbAidAyxWmCB0VFnkC09zgDFRkt83yLQbWS5eh59jdh qkeSH2Yx3oOvjZKZJYAvgzwDzZZ5zCM= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-415-gV3xz4A2NYOJ8YKBBTSFGA-1; Wed, 14 Oct 2020 09:46:11 -0400 X-MC-Unique: gV3xz4A2NYOJ8YKBBTSFGA-1 Received: by mail-ej1-f70.google.com with SMTP id f11so1185407eja.23 for ; Wed, 14 Oct 2020 06:46:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Wz5wOwKo0yVq73Er/y/1PB95j1y0IW2kymLlsiYsZYA=; b=euDN79WOwVI6eN998nD9aG14VjYd6wP5DsuqkoZ5NR5UBQOuSzpILLxNVeYZnb5cds I9vXMf8cblJjpMvl/JshZpkSmXTO6xahCDGDSSnSW7nOct4tFcEqfJoUDT+UZQHk+wIi gpsa+sjGwGPopStuGDfOszDPG6jZLqgGlQeiA5XSBlkVEh1flqLsVF15bRGbRX5TDmol xcnrcxatEh8Iiovqi4McajPV4RKZ1PyY1dXSsJKkoMTPDcuXDDQvPmNxLajWTRojP0mS ZRPKRm/2LziFeoAB2CWvcmBjdf1RooY89/qT2Uc9F/yzMnttp2k7a6imrT5AZYRlNdz3 pUbw== X-Gm-Message-State: AOAM533TM9cuPWCpstzIKdtirRidN3Dc6mDqq/c+07qWjfnMc7q2G63S FZWI6bRH2tXUushfZ1BkNFIVVqyLtArCniISyqfriZJyoPn3SeHpCFqx3ZFq3lSG0Amc9vhKd+L k95OQHY47I8kp2ukrWz92Vw7V X-Received: by 2002:a17:906:a0cb:: with SMTP id bh11mr5532305ejb.314.1602683170479; Wed, 14 Oct 2020 06:46:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb1nM/ZqfaRSOoR+zmuMc2x55E7Mkc/9Q5kPU90Nyx6UJvLiTtXmO9Wmhqbb2jybKDvwDJ7Q== X-Received: by 2002:a17:906:a0cb:: with SMTP id bh11mr5532280ejb.314.1602683170246; Wed, 14 Oct 2020 06:46:10 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c0c-fe00-d2ea-f29d-118b-24dc.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:d2ea:f29d:118b:24dc]) by smtp.gmail.com with ESMTPSA id k26sm1766239eji.22.2020.10.14.06.46.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Oct 2020 06:46:09 -0700 (PDT) Subject: Re: [PATCH AUTOSEL 5.8 17/20] i2c: core: Call i2c_acpi_install_space_handler() before i2c_acpi_register_devices() From: Hans de Goede To: kieran.bingham@ideasonboard.com, Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mika Westerberg , Wolfram Sang , linux-i2c@vger.kernel.org References: <20200921144027.2135390-1-sashal@kernel.org> <20200921144027.2135390-17-sashal@kernel.org> <1977b57b-fae6-d9d4-e6bf-3d4013619537@ideasonboard.com> Message-ID: Date: Wed, 14 Oct 2020 15:46:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On 10/14/20 1:23 PM, Hans de Goede wrote: > Hi, > > On 10/14/20 1:09 PM, Kieran Bingham wrote: >> Hi Hans, Sasha, >> >> As mentioned on https://github.com/linux-surface/kernel/issues/63, I'm >> afraid I've bisected a boot time issue on the Microsoft Surface Go 2 to >> this commit on the stable 5.8 tree. >> >> The effect as reported there is that the boot process stalls just after >> loading the usbhid module. >> >> Typing, or interacting with the Keyboard (Type Cover) at that point >> appears to cause usb bus resets, but I don't know if that's a related >> symptom or just an effect of some underlying root cause. >> >> I have been running a linux-media kernel on this device without issue. >> >> Is this commit in 5.9? I'll build a vanilla v5.9 kernel and see if it >> occurs there too. > > Yes the commit is in 5.9 too. Still would be interesting to see if 5.9 hits > this issue too. I guess it will, but as I mentioned in: > > https://github.com/linux-surface/kernel/issues/63 > > I do not understand why this commit is causing this issue. > > So I just checked and the whole acpidump is not using I2C > opregion stuff at all: > > [hans@x1 microsoft-surface-go2]$ ack GenericSerialBus *.dsl > [hans@x1 microsoft-surface-go2]$ > > And there is only 1 _REG handler which is for the > embedded-controller. > > So this patch should not make a difference at all on the GO2, > other then maybe a subtle timing difference somewhere ... ? Thanks to Maximilian Luz sharp eyes this is explained now, despite the name of the i2c_acpi_install_space_handler() it also had a acpi_walk_dep_device_list() call hidden in there, so the "i2c: core: Call i2c_acpi_install_space_handler() before i2c_acpi_register_devices()" also moved that acpi_walk_dep_device_list() earlier. I've given Kieran a patch to test which in essence reverts the part where the acpi_walk_dep_device_list() call is also moved earlier and that fixes the Surface Go 2 not booting. I will submit this fix upstream right away and I'll also send a separate mail to Greg / stable@vger to see if Greg is willing to make an exception and at this to the stable series before it hits Linus' tree. Regards, Hans