Received: by 10.213.65.68 with SMTP id h4csp3053240imn; Mon, 2 Apr 2018 20:30:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx49d+RCzyfQb1wRRJ2L6gryEXPbc+NxNjqvg2KJP/nOlY5C99DKlMz1iWrJReDvZsgASXQg0 X-Received: by 10.167.128.207 with SMTP id a15mr1189738pfn.116.1522726200822; Mon, 02 Apr 2018 20:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522726200; cv=none; d=google.com; s=arc-20160816; b=VjVsG7QX4FtEEwrHtbd/8I/h2dtSjY5W/GiEdzy/F3gQTpek101S+vI+AYe8egWZ3R AsPzeoRzv/kZt+QC7npRejjNhvJRA+0Q7F8c6YcQNWvBO27tgtUEFtKviuX5wmYDs7Mt nWLeuW48R3qJiuNWb8h1zTtKvODlxAMkSovseDl2pcFUMkdrqBS3639WbbVY6Iy0mDhd /IxWatW/PseJmZDsleht6Lp4jmDNnMzX01BJZtJ+4c0cVzdLikbGuZ4rBRBSssUxfbZm pC5hgIQ6ZDIbpog7/7gIviNsmSLbL8lRLN3+r1eec6ENqGx93f3XFl5yd91KPlKD1HI8 C4iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=btBEmaVYbq6Hi9tEt8dPrNVwfUeabuabHtg3C+xccgE=; b=LLosdFr9jMbuBO5JX7PQ3CBWzMBxzWjVSA2bpAZDILLrcqcvwl0IEF2ddXi/8gm8Ta ra7TzGf8h30aDOhhquInUL20zas/n1EEUdFh3hZ4pWEbpABGXp5yZeorKX6O1X8pcBNW dYK7RjAFGl2U+jHpE8OgcLB1pQC9t5RRMhPJQcLj6XfRhX/wJq/uvQPCIT7k+Lpyb9Tu 74V2oyFLfL7pJpuq0FDc0u10WtYA5pltvJCx2RYYS3TIBFXeu6vNAcHyXV09lwd0X1ge Eh+ycsY1bj5kIhG5Gan/GcBcDZ42oDEzvx5rTcBKZu6mvVLF5WT0qMh0vK9QATH8AwFW 3b4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=kaaoRkv4; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g66si1390432pfa.257.2018.04.02.20.29.46; Mon, 02 Apr 2018 20:30:00 -0700 (PDT) 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=@microsoft.com header.s=selector1 header.b=kaaoRkv4; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753090AbeDCD1q (ORCPT + 99 others); Mon, 2 Apr 2018 23:27:46 -0400 Received: from mail-dm3nam03on0137.outbound.protection.outlook.com ([104.47.41.137]:59840 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752935AbeDCD1o (ORCPT ); Mon, 2 Apr 2018 23:27:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=btBEmaVYbq6Hi9tEt8dPrNVwfUeabuabHtg3C+xccgE=; b=kaaoRkv4Yu70XVVTi0E9uNRcN0X0w4eJI7aQMud8ZxEFqj0XOmkgVQiVfEFCZ26xypzpybrtmr6yRpzUjznnZCtZv8sbPZbbWa0ps0JSvlCx/G/BgehyQHppaLheAdTQUkYX6Ymbcq5iM+96HxEL+7m73f4l40LagXgTZRdNlvQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.675.1; Tue, 3 Apr 2018 03:27:41 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0675.003; Tue, 3 Apr 2018 03:27:41 +0000 From: Sasha Levin To: David Lechner CC: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Stephen Boyd Subject: Re: [PATCH AUTOSEL for 4.15 104/124] clk: fix reentrancy of clk_enable() on UP systems Thread-Topic: [PATCH AUTOSEL for 4.15 104/124] clk: fix reentrancy of clk_enable() on UP systems Thread-Index: AQHTv5nJGUwlmQMprEeYWg0XJMUef6PXtiQAgBbCGAA= Date: Tue, 3 Apr 2018 03:27:41 +0000 Message-ID: <20180403032740.GL7561@sasha-vm> References: <20180319154645.11350-1-alexander.levin@microsoft.com> <20180319154645.11350-104-alexander.levin@microsoft.com> <6a944b80-c86c-ca23-5ada-f088d84c9a80@lechnology.com> In-Reply-To: <6a944b80-c86c-ca23-5ada-f088d84c9a80@lechnology.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1032;7:hd2uCxGEIgOnEZtzrkyqNq/70z2u7pqgAEs3gY2bPrqjQRaC1W3F0vH5aGY/tClY5tO6gojCBjiKJVW1LUEzeiRTNZMvY4CA076kBtBvZcc7hffnESxxg+W5RW+GJZnEgVwjhuJv3zki3TZr3fYBBbNHwAQdHzksPfs1Nh0oJdD8wX0jZVTPKhy9+b73HzYSsa3x5tMeB3aglN99HNy01nP/BkPLgAKSqNg+60upVwC9XeojVv/QfZfa7KHnKnPI;20:YlYzhOaczLhhCGG1azMEz9ZIA46RZ7hW2XCfF14GVtOAkfa/Gekf3YC6WzZbHHayM9gbzq36C7JmdIIdjjn/pli0N6FzC3gHphKQBevxBpR2tnZL3D7ZntzXckgkz66ZS3PyQpsiBs5DSsaEtBkeXBocadDvC7TtH3StX2pkCPw= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 67ea6c22-8fe4-4fd7-e151-08d59912db87 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1032; x-ms-traffictypediagnostic: DM5PR2101MB1032: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1032;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1032; x-forefront-prvs: 0631F0BC3D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(346002)(376002)(366004)(39380400002)(39860400002)(396003)(199004)(189003)(81166006)(8676002)(81156014)(3660700001)(2900100001)(97736004)(8936002)(6916009)(305945005)(105586002)(33656002)(5250100002)(7736002)(1076002)(3280700002)(2906002)(99286004)(54906003)(86612001)(6116002)(3846002)(186003)(33716001)(68736007)(26005)(10090500001)(86362001)(575784001)(76176011)(33896004)(102836004)(6506007)(59450400001)(25786009)(66066001)(478600001)(10290500003)(14454004)(106356001)(72206003)(316002)(5660300001)(9686003)(6512007)(6436002)(22452003)(53936002)(229853002)(4326008)(486005)(6246003)(6486002)(476003)(486005)(446003)(11346002)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1032;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: DleqKo0OUwLlT6e8kEVgJ1K3W7lQCyL6Br/phZ631tHgcmOlyI3PIf4DRwXTGMbNh5O3JIFyGnAweBqZ1JyMADmZrWbyTQUujqc857EtcJqJpB2GoQ7lBFQNDavrIypL7Sj1rMMlCqO6UKXyXrToUpQd/86IbgKth/DON0XFESyo9eG2G58vNIALKbHuxDYTYYBX+idJSFyN5UAJK+BeGweuh1xLO0xDCzuM+2dOxg2CO40FOGm6gNRx8Eg5RkChLCxU46SruSY5xQSejEtt/KgZFh9W5SQKO8+V5mfmJf+GwEuGBTE69qkcXtvjpE2iM4DzAxJ7uFJk8x7LhITFtEBDqfFDT23IdvYqH64DBkoX8tPulWJ3oyycFECfcJtjn779nSdDe7jILp5s55avkF6dix3yi2CBLfHZISePjkk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67ea6c22-8fe4-4fd7-e151-08d59912db87 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2018 03:27:41.2878 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1032 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 10:55:16AM -0500, David Lechner wrote: >On 03/19/2018 10:48 AM, Sasha Levin wrote: >>From: David Lechner >> >>[ Upstream commit a12aa8a68dfef5de181f2e555aa950a0ab05411f ] >> >>Reentrant calls to clk_enable() are not working on UP systems. This is >>caused by the fact spin_trylock_irqsave() always returns true when >>CONFIG_SMP=3Dn (and CONFIG_DEBUG_SPINLOCK=3Dn) which causes the reference >>counting to not work correctly when clk_enable_lock() is called twice >>before clk_enable_unlock() is called (this happens when clk_enable() >>is called from within another clk_enable()). >> >>This fixes the problem by skipping the call to spin_trylock_irqsave() on = UP >>systems and relying solely on reference counting. We also make sure to se= t >>flags in this case so that we are not returning an uninitialized value. >> >>Suggested-by: Stephen Boyd >>Signed-off-by: David Lechner >>Signed-off-by: Stephen Boyd >>Signed-off-by: Sasha Levin >>--- > >I don't know of any existing bugs in v4.15 that this fixes, so I don't >think this really fits the criteria for stable. > Now removed, thanks!=