Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7288536imu; Mon, 3 Dec 2018 10:26:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/UMLsM9Fz6T/J/VYdt1B3F7WCu+dHZhMotN09fzJE8uR0ajgIIygWDAOrWw14Gy9CVVkJfz X-Received: by 2002:a63:4a0a:: with SMTP id x10mr14041776pga.237.1543861563741; Mon, 03 Dec 2018 10:26:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543861563; cv=none; d=google.com; s=arc-20160816; b=0hNsHQCst9i9FkM27y5fuYeF/zqdQGYa6+ZwglR5lkDw0/M9VRnzPUAcxf2BrM+m0O Wze13lgcMN2EZPrYce0SE5WZAJbIOff12zk6+G0lSBVJYxwuI+bF2qKG9aKMx21VghH0 nt1Z9nhOd22Mq+rXTdRL9lVhhsjdWWj4xtS5teuFX0ZSdlW+mT8WH1SwdTZp1W0Waldz Ad7fQT/M7+OIno6zK/8+/tYGcRGeOtLe39ZgQiNLdtlmytyOuTmfJ2aArU4lRpSs7Jt/ djdBGPK6CCx4ZDLW9cDEQjkrclLD5K/APstL5gLqSwdk7RGoinUlUvbNmaxpiBlNNgyu Hesw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:cc :dkim-signature; bh=8S2GCIBmDhpsr9ffz2NPr17A6UX3yXgBFRtRmtKvOXk=; b=GG7/hvt5sMmKmG44fR3wug4D0cE3A6TD1hW1yVearmW2XEMdbAX+wcjj9YIm+TqJ3z jwEQA8GEwa3pK6FeqTf73baE+uJtH6V1Jf4Y+2KvgSV5epICQLnUv322g/rU++CcYuOF wdRnucQi9pvR66tLLsJ3TzMa4XDNOB2xSg4Dw6Sg7Aajm6b93DnaEeAdp2Hr4I44+5Kw uP2wvvffGlkTGK8BeHTeTDvULZipyEbVJ9hg3EYAmQ+Mv62NkoGLmEAA1SYI/3EleO6f D4ki/pdCjhNTj5FF7TaZJUVX/AzmDVFUllY1MMo5KodfGhD0eXUPr7LQKk20MarNHDE4 0syg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J1Epz5LC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o61si14970594pld.246.2018.12.03.10.25.47; Mon, 03 Dec 2018 10:26:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J1Epz5LC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbeLCSZA (ORCPT + 99 others); Mon, 3 Dec 2018 13:25:00 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33345 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726394AbeLCSZA (ORCPT ); Mon, 3 Dec 2018 13:25:00 -0500 Received: by mail-qt1-f193.google.com with SMTP id l11so14960253qtp.0 for ; Mon, 03 Dec 2018 10:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:subject:to:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8S2GCIBmDhpsr9ffz2NPr17A6UX3yXgBFRtRmtKvOXk=; b=J1Epz5LCK4GxDI+tYFXIzr1G5znA7Ywrd/jwMvjYH+3Razy48sX2k5ylAs5+NNshc+ B68SO1IlcCVuArI+oE7+iKpqZw6Uve56gWqG9WHO4RBU4qDDJd5y4Kl5N0andDZMsPy0 f4XtaV5He9P18+FLEOKM074pFtmHkFtAMEVKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=8S2GCIBmDhpsr9ffz2NPr17A6UX3yXgBFRtRmtKvOXk=; b=nxevdW5vuqb9dhQffzLhi3SqaCZhVX3Z5e6uauF4N02SFbHUe8QGICIZYuNOlZ/0eF Cw/QSQNgXV+y7v92XasKySZhimnyc5wm9ikasciqmTNi+7BCOUGWSsAzxTTLVKqoe5Vx wCUIEpzpZz0KcWJOLwRRFs+sw6DAmaiPUMyB2mB43BtANDvuquk4PCVHXUEoY5ONc2d2 d2SBKkXvCB5xxCtqsVQkxPJSqR+vAPIhX+/x4bibet6t3x7Fq1VE8oj3X3yXPzL4QWOh jU1SqNI16cutT5KyyypoVIvxOzPlcgxHmJU8zkq0LLnlGk1aCdPjdUL8jl4BQpfTLC7x qGdw== X-Gm-Message-State: AA+aEWb4Cup2InGzD0VhwaSOCXVPMU2qTHYlH7TaHhAQxU6OKqgEQ6hq pqZeC3Ghq3B/7DdL6tveKHil+A== X-Received: by 2002:aed:3027:: with SMTP id 36mr15949423qte.252.1543861493699; Mon, 03 Dec 2018 10:24:53 -0800 (PST) Received: from [192.168.49.18] ([138.204.25.29]) by smtp.gmail.com with ESMTPSA id v2sm6540675qte.75.2018.12.03.10.24.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 10:24:52 -0800 (PST) Cc: Rafael David Tinoco , Daniel Lezcano , rui.zhang@intel.com, edubezval@gmail.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: v4.14 fix for Hikey 960 unbalanced IRQ enablement To: Greg KH , Sasha Levin References: <20181203133107.4002-1-rafael.tinoco@linaro.org> <20181203141442.GA19335@kroah.com> <20181203151946.GG235790@sasha-vm> <20181203180521.GA15996@kroah.com> From: Rafael David Tinoco Organization: Linaro Message-ID: Date: Mon, 3 Dec 2018 16:24:48 -0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20181203180521.GA15996@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Greg, >> >> Patch 5 in this series seems to explain the best what is happening here: >> >>> With the following changes, we fix all in one: >>> >>> - Do the setup, one time, at probe time >>> >>> - Add the IRQF_ONESHOT, ack the interrupt in the threaded handler >>> >>> - Remove the interrupt handler >>> >>> - Set the correct value for the LAG register >>> >>> - Remove all the irq_enabled stuff in the code as the interruption >>> handling is fixed >>> >>> - Remove the 3ms delay >>> >>> - Reorder the initialization routine to be in the right order >> >> We can't revert anything because the breakage was there since the driver >> was introduced. > > So the driver was broken in 4.14, why not just use 4.19 instead? This > isn't a 4.14 regression, it's something that obviously no one has > noticed for a year now, so why backport these big patches to 4.14 now? > > thanks, > > greg k-h > This was caught during our functional tests. No direct complains, but, since it included a trace, and there was a fix for it, I thought it could be accepted for upstream v4.14 (it is included in other v4.14 kernels, like Android's). thanks! -- Rafael D. Tinoco Linaro - Kernel Validation