Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp815762pxu; Wed, 14 Oct 2020 14:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxovw2oW9vevXpdGgH1hxLI8km5GvSHGNcuoUb1ddgow4MJzCOoeDMoM04QnyHASXk9lFpP X-Received: by 2002:a17:907:aa9:: with SMTP id bz9mr1172439ejc.472.1602711984144; Wed, 14 Oct 2020 14:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602711984; cv=none; d=google.com; s=arc-20160816; b=A0aelflqsu79IWtXUgE3GirtRZWHo7JEeK40YqHx9p9pIMMXhg/5NVnXBFWBPS30ow MOFSWFkCyDH8LPLQm/uc+IYVYKEoLt1hgeD1Dae4bAEwWD2hcLVoqYtWxjL5PNG4RzCz NN/B4NAdd/OQMaoUWYefeo1euJFFoidkKrlYpsdI4gxX1ZZR80/5wvJO4W5Qx9xdcxAw Zy+3KEJKMkXRfwkJpAHGIyXi7BfIDnxeYitB+JknveUZBroycmLZX/jasNiSe+BO3Zpi Vx71qU5TTWB4TfWAGfekanFdcXsKRsvrGN2PFPbH4NAom/fLzSGKegubqEiPy/xxNjo8 RHdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=Wz5wOwKo0yVq73Er/y/1PB95j1y0IW2kymLlsiYsZYA=; b=plu2wMWgGbuPy4sYg2rUk67i8a0RJfBCHHniUXMACHh1uLr/KM9Sh/4ga51Sn40qaK mEEojJI5BwtcxZj3j2EM3RV5GqIoawIxxU7s/m8+a85Ap5D13wVKK9bNsnnG19wEhwPK z1H25BsZDvS+CczahGvNB4G/DHstrjZ+BrKdRqr9Ed3lRjI1JuULVp1KiV9M1tcZvssS wUjdL5sBDOhQKjO0p+Zrput/phasWAz/6IwfhtkzgCamp5qmPtVf/kV8BXpw6iRjIhin +PsplhUu+nkUOUHEa88gXkHiJPvhJb4JNS7f4sLYfIPkbHOXWPqivSw0G5RFiAL39ign wRqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GSt/Demy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si635270edj.40.2020.10.14.14.46.02; Wed, 14 Oct 2020 14:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GSt/Demy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729165AbgJNNqR (ORCPT + 99 others); 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-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