Received: by 10.213.65.68 with SMTP id h4csp1666055imn; Mon, 19 Mar 2018 10:02:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELsMlK8vUw8HoIOr27HrBcZ6x0McSUcbnfFFiPkG1tT7A7LutBW0MtLoVqOHGQKVFYFW3zcO X-Received: by 10.98.86.15 with SMTP id k15mr10924643pfb.187.1521478975942; Mon, 19 Mar 2018 10:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521478975; cv=none; d=google.com; s=arc-20160816; b=aybzGZ+NxJEQMrttEfFhaUoE/r39eXxYpqdWiHXcBAKlovyhSNQDWJseXofrNl8590 sc7EjAk/vnqkh9tVjoOtmkt4V7xfVx+GlwXRnkOHANZ2LWpgU4pqrQXyob9lmElDBXw3 j2k3JwlADVTjiRENKtUoUonwuyjTYj8g5UZhL5QUXaX1XSr3b3c9y/wFWYcqEWJLssLd 1zY9GUsqMKJNBxIkgiEAykctOPHh3Bp/x4swkA5u2BbcWfewWKpV3jKED8qPtGda478G F6Gn2WAPSPMwjGVVoQSM+E1jgmvd4BfmIPKLUvnjGKiK0wdFejLGrUtBEPxL+DRgeITE Qopw== 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=usbxFQd5I79bUTTcyd0icIB9+wlJXq5h3555v/VOWjk=; b=m7UlQ6s2eH71WtizNdvfyYKkC7M5EKURCvhgpbsM9vIiO1tj+r2sxRojIszydNcQck CRACG1RSGmTElcaEVS66I3b1O0W1btYh0BHy6AdeKZcP1ooO7sV3hUrnzS1WXdJhW6GE JxSU2545eGOgfwMlLXuiL0B+K2GAIw/XX/7afpRKAYRx8CxFv5EGJkzQ8ASfyQx99lX1 a9gzTM2vyo7T5DTORdSyiT+Keoan1UbMLwlXpfEL3Dn49xyTbnHrhrskTX60y7N/gLzK uGrZo3b11WoZmj+3vxD8/3dAzB4Rv0HoiHblJM+Uivk5q8oxsBwTfGd9gxY+DXQYL+0j 8KRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=NsbYCcr1; 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 v13si250935pfe.186.2018.03.19.10.02.37; Mon, 19 Mar 2018 10:02:55 -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=NsbYCcr1; 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 S935175AbeCSRAk (ORCPT + 99 others); Mon, 19 Mar 2018 13:00:40 -0400 Received: from mail-bl2nam02on0114.outbound.protection.outlook.com ([104.47.38.114]:8497 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935117AbeCSQ6Y (ORCPT ); Mon, 19 Mar 2018 12:58:24 -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=usbxFQd5I79bUTTcyd0icIB9+wlJXq5h3555v/VOWjk=; b=NsbYCcr1PHDfqZlQIHozhOp7Pm/JBhJxzZGWDl/QBjOJozsB7m8EQ3BAY+NXpp2WGvJgDW+2E6eFMzprT1GNIuN0G1gssN9mcoGQzrYF9YImX95/aa5lebeG/N3bP0AA1zXBqXysd0cHEr/ccXEjMwlqdhKh1K16Ky56dB9X/xE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0808.namprd21.prod.outlook.com (10.167.110.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.2; Mon, 19 Mar 2018 16:58:20 +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.0631.004; Mon, 19 Mar 2018 16:58:20 +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: AQHTv5nJGUwlmQMprEeYWg0XJMUef6PXtiQAgAARnQA= Date: Mon, 19 Mar 2018 16:58:20 +0000 Message-ID: <20180319165818.7bxduuoaeptjsvoh@sasha-lappy> 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;DM5PR2101MB0808;7:+JgpksIil24mxJ2e54x48pkagzEgzNcAS8qHyRgucgplyJQZbCSOgUhAGfAcQJoWi8Dq1a2RgAZj7cWS1SVFCBDQuaaQe1/pdRuISUls5/k0oV5JCXbXerDx/0ru1Qe2xxmtMscX55BCVODvvAuDzS1HXHTf4YrUSJzpGlycPpqaZ4VdJGMyRJyxXILoxyy6fE9iRVD+igPrDtb95le8rJlhG1MXlVYzDuOV4E9ZewKBBexq54H/s5cwQHkwXudZ;20:Km4N27z/R06GFhIBfvCyQYwwSPYFv9P79bPaee/W567JjXZk5ZKNMAiNlB7XHJSQyBi2v3dqIY6PdrB9+8hLyTUNPSVkL9Z5XapjG5c3Kr/X9GymtMLkO1omfPDtqt4iRO2dJv2mOISyEIhJEnKRVdtq1styMrjX8KcAAKAUT0A= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d8b3e310-c27c-42c0-4d6b-08d58dba9e77 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0808; x-ms-traffictypediagnostic: DM5PR2101MB0808: 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)(10201501046)(3231221)(944501300)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0808;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0808; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(346002)(376002)(39380400002)(39860400002)(396003)(366004)(199004)(189003)(575784001)(7736002)(2950100002)(229853002)(305945005)(186003)(86362001)(6506007)(3660700001)(5660300001)(6116002)(8936002)(3846002)(1076002)(26005)(6486002)(2900100001)(6436002)(6916009)(2906002)(86612001)(68736007)(81166006)(81156014)(10090500001)(102836004)(33896004)(59450400001)(8676002)(14454004)(105586002)(6246003)(25786009)(478600001)(5250100002)(53936002)(3280700002)(316002)(54906003)(33716001)(4326008)(6512007)(72206003)(9686003)(22452003)(10290500003)(66066001)(99286004)(76176011)(97736004)(106356001)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0808;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: Se4V0rk3WLSnW1GhmaLx27j+9KR7WxGXLr8TVM0XwnirpsEYzRaSAheK4MHG5y0kTO5OP/QjB0eScrQbwHJXdy9/ckwLIB25yzwvNarn3I5y3WFwpAty+JvdJfTkMofwhSEguqdQZysTNiYaVzFgtW1dL866v2XC/j9hcnu/KVOWLjD0yVEDOW3AUaJ34paOLZLf87S2I6/Zr6tJaMOSBC1gz3hDwUkt56U9n5ZSICgjwysBK3vonpYgQXKOJsD0eBXRUMNP9ILfSDk5EHokrd0rFTGKn79erMz8BPzA+4FM5ePF5tKQQwiDcZuTX6Ytfbk8aplFqTzoVFZdKec63Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <56BD72410A817A4EB4418314CD7419D5@namprd21.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8b3e310-c27c-42c0-4d6b-08d58dba9e77 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:58:20.2954 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0808 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. > I'll remove it, thanks David! --=20 Thanks, Sasha=