Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2499844imm; Mon, 10 Sep 2018 02:02:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmYrxipIK57LKNFfSb/2EGiE85mNZIFnnMl7zrBEBwPj1gOSLUFKzVY6hMt6nNVjO2Pk2J X-Received: by 2002:a17:902:5a87:: with SMTP id r7-v6mr20633354pli.247.1536570139556; Mon, 10 Sep 2018 02:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536570139; cv=none; d=google.com; s=arc-20160816; b=zGPqqhCdbBgMhlQ0jyJYPXaF03X5mgbcKLoskOBbFPVhkv7C+MbJUZQE7aRmcD/uH/ +YSmTY0yTcJmwP9toSLcddaRmG4NfZOkqIUsKmccJVoNgAarNvSsHFrkLrbq9ftilXr0 Xl0dXNxE8zxrZxu0BDiUKgryEbkFTcPiTXxDw/2n2m9eHYH9WODzbTakpraZT6ySe8b0 9cb9qSiv/3X8cYmZoMZgwsbF96CJPn3W1ztDkT1mUaPc6cQUG7PS8kDlzoAeQ2K/bkIK O4QcWvcF5GOVjBsrqtEi60+TIIAXtornKTGfW9zFm8MaSuY5AETcrN7GhoWyxylp2GNB +tWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:to:from:date :dkim-signature; bh=0gfs3cchXyzxnZjd7VI3ghAw8h7887W96EKC0AU96hQ=; b=OjPq+qOhPXPErlDI7iHYKWa+12rn9t15OIK7W0MPrA+b5l46Hx9fv+VVpZdWec0nVh CIIatWYKlzL6cdTYmGtNYhV2xXijXJlFoJz91DPF8qEhgjf+DxYfw4QUP4ydIGGAB+0b rXws83K0fYfxcODSBXs/1yO1t0w/DFYdA+0z7J94wtgyyxQtjdu19DXVf3WDbHFYfD3P JCTjmkpMfXKj86eh5BfKW/9XwcDh34SNKMnOSUJxYEDyBTay94Njc6Ti0rDi2ucqmpDg syEYg+Te0rn11mQoq6tJ8Ps1eAdMhuLQQb5JJPJXwSVsHZeX40AjYafVFDJnJGgOWUZs QrdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=N7mtceZ5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si18514743pfb.208.2018.09.10.02.02.03; Mon, 10 Sep 2018 02:02:19 -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=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=N7mtceZ5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727657AbeIJNx6 (ORCPT + 99 others); Mon, 10 Sep 2018 09:53:58 -0400 Received: from mail-eopbgr720058.outbound.protection.outlook.com ([40.107.72.58]:56496 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727093AbeIJNx5 (ORCPT ); Mon, 10 Sep 2018 09:53:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0gfs3cchXyzxnZjd7VI3ghAw8h7887W96EKC0AU96hQ=; b=N7mtceZ5bErPOSZKX9bLHTDNpLJqbOD0/5kOmAiPWPkKJvGfc02bW/ZP+KFNJ6p1RPrdZF8jxSYjI2WqdaN3rb/cawZGEvlwSc6p2coDgRffL4TJxz5gBhI/VYKi1gYkV1qOPJfTehQrxQpj2GVDRG5rxq2m5knhUkJMXCKTtlQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by SN1PR0301MB1583.namprd03.prod.outlook.com (2a01:111:e400:5232::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.18; Mon, 10 Sep 2018 09:00:46 +0000 Date: Mon, 10 Sep 2018 16:57:22 +0800 From: Jisheng Zhang To: Jingoo Han , Joao Pinto , Bjorn Helgaas , Lorenzo Pieralisi , , , Subject: Re: [PATCH v3] PCI: dwc: fix scheduling while atomic issues Message-ID: <20180910165722.38218779@xhacker.debian> In-Reply-To: <20180829110408.556c3622@xhacker.debian> References: <20180829110408.556c3622@xhacker.debian> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: OSBPR01CA0068.jpnprd01.prod.outlook.com (2603:1096:604:10::32) To SN1PR0301MB1583.namprd03.prod.outlook.com (2a01:111:e400:5232::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0e77e95f-95d6-4187-4082-08d616fbe6e2 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:SN1PR0301MB1583; X-Microsoft-Exchange-Diagnostics: 1;SN1PR0301MB1583;3:PdRkTWJJgx0hZMdc2nhHc26YA39kKoTjI4oKEvo7QafBNdUmRPi0hteNG1Wi38Je0a6LUfU/NQatruB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OQY4AIQG/5bRUJtAfoocnBqF3BywOsGj7haamF+T2Qvpf9j4Iq/f1aMIzQN2U5PK74G6TpzPWYCfccQ7hTFGgaDP5fyKSc6nepVGUZdBneIiCS18hTDrPX2rALz/NJWKsKQ5VGWCdjc7vNGqw+wpbhn9kSHJeCuOTRstI+nltAzOar+HF73mq3vLCD0bigWxjZsnpjPXahGvGDVvVc8qSKsMaPnxdzz7VXeT/Zjndvv7XfOHvWPOkeLD9iVrzRc4N65qgL1;4:9E57NKRrqiWOHqmZ47etKGm/TYWMZKGn6zRY6LvC1hXlmRo5i/3GQz4uKCKRaTQB+3v2jhLwj//jQdDCI+0OoPWEVlm8xihAp6FWQwzX673X4GsvxVMFlPMpG6BdWHZvheaiLWZaut0kJRBg7o/eBD+mjxplg5mFWxvibbDhuaKb+xW36rHl84BpN91u0fQixoUAvkhK1GQ1sOjUYUtKSxhCXf0/bL3YIQ8vOJfMJiJ1zcOqX3R4fvVpmOIdmyxguYvR6JCa9O/U914aCtMKHQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201708071742011)(7699050);SRVR:SN1PR0301MB1583;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1583; X-Forefront-PRVS: 07915F544A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(136003)(396003)(366004)(39860400002)(376002)(346002)(189003)(199004)(53754006)(2201001)(86362001)(26005)(186003)(97736004)(16526019)(1970100002)(316002)(486006)(25786009)(575784001)(47776003)(7696005)(68736007)(8266002)(97876018)(39060400002)(386003)(52116002)(6506007)(110136005)(66066001)(476003)(11346002)(70486001)(446003)(1076002)(956004)(229853002)(3846002)(6246003)(6116002)(81166006)(6666003)(55016002)(8936002)(53936002)(81156014)(105586002)(50226002)(230700001)(9686003)(23726003)(8676002)(106356001)(5660300001)(76176011)(50466002)(33896004)(478600001)(305945005)(7736002)(117636001)(72206003)(2906002)(2101003)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR0301MB1583;H:xhacker.debian;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0301MB1583;23:yqcN+uXvQb4uaZcNcUtDjveDq8c2BXiYcQezt0x?= =?us-ascii?Q?sOMZV4hq4vcj4vwIvaOzXOBk4okJcsNqvy4qmln964TXcbysSz6W/6LSAkh2?= =?us-ascii?Q?b8LuFZiXDn8jw1r4UetXMhZewbUhQ+YNHet7f8A+XZ+g7vY7sK/dbQRNsuFJ?= =?us-ascii?Q?n40YnvvELrkSQlq13iKpI6REqy12gvPDRh9lSIizcVtYyo0hX/GfU4gPoE9o?= =?us-ascii?Q?XD1Gx3tBm6pe1mahn7bkWXaaeHW0DQOTJWrlgTCdSV3NhMvZzzJypu2zOU8K?= =?us-ascii?Q?ezp7l5vQq3Y7pfYer6Jc+0UxYB0A2Fny3OIfp0kYTBzJ+TXAtfXNdSo0f8BJ?= =?us-ascii?Q?HhNVy8bU5a8AL7YiqbEucOAuATSCXFqCD/XuA6O8rV9fVsWRzvfH2iT0500A?= =?us-ascii?Q?a6HOTsKHKmnAbKPPR2OXLbh756bxKZGmGQmIv39VUUzFUwuSAJONn2EFoLD0?= =?us-ascii?Q?tw2x+79Uvs/osRnEzADPI574uums4/bo5OyThW4nO/65bP2vqohH34E1+6b4?= =?us-ascii?Q?Pnwlnnk5GMV91iCh2TNPRyfhj8zJXBDSCWFNBBYoP004S6fvwx3Qq+oY/k4T?= =?us-ascii?Q?6vnx//pZRd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ps=;7:MxXExj4BcRW6FngKuDp1lOJ9hE8m64AqtUm4aBLL5KCAGev1ZBh6zcWMORztRe8ugxKmYERh/u/b5tYxqyKU/47ERb45oIRxjRp2nxyYs6nKb5qeY/V52iyflKnXN7NlzJq1ZPDaLHdrNLSwwXFpj8wCfBa1ViPqcwrDo9iUciM4LAc1VQvPDrqo76BpECM2BGaLzU65tRUqXvarBU5MxwzH9dBqF0EJ/2MuqqAdlpUDe/cfEdWZ4+PKnNSxV7E5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2018 09:00:46.5296 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0e77e95f-95d6-4187-4082-08d616fbe6e2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1583 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Wed, 29 Aug 2018 11:04:08 +0800 Jisheng Zhang wrote: > When programming inbound/outbound atu, we call usleep_range() after > each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming > can be called in atomic context: > > inbound atu programming could be called through > pci_epc_write_header() > =>dw_pcie_ep_write_header() > =>dw_pcie_prog_inbound_atu() > > outbound atu programming could be called through > pci_bus_read_config_dword() > =>dw_pcie_rd_conf() > =>dw_pcie_prog_outbound_atu() > > Fix this issue by calling mdelay() instead. Any comments about this patch? Thanks, Jisheng > > Fixes: f8aed6ec624f ("PCI: dwc: designware: Add EP mode support") > Fixes: d8bbeb39fbf3 ("PCI: designware: Wait for iATU enable") > Signed-off-by: Jisheng Zhang > Acked-by: Gustavo Pimentel > --- > > since v2: > - Add Fixes tag > - Add Gustavo's Ack > > since v1: > - use mdelay() instead of udelay() to avoid __bad_udelay() > > drivers/pci/controller/dwc/pcie-designware.c | 8 ++++---- > drivers/pci/controller/dwc/pcie-designware.h | 3 +-- > 2 files changed, 5 insertions(+), 6 deletions(-) > > diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c > index 778c4f76a884..2153956a0b20 100644 > --- a/drivers/pci/controller/dwc/pcie-designware.c > +++ b/drivers/pci/controller/dwc/pcie-designware.c > @@ -135,7 +135,7 @@ static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, > if (val & PCIE_ATU_ENABLE) > return; > > - usleep_range(LINK_WAIT_IATU_MIN, LINK_WAIT_IATU_MAX); > + mdelay(LINK_WAIT_IATU); > } > dev_err(pci->dev, "Outbound iATU is not being enabled\n"); > } > @@ -178,7 +178,7 @@ void dw_pcie_prog_outbound_atu(struct dw_pcie *pci, int index, int type, > if (val & PCIE_ATU_ENABLE) > return; > > - usleep_range(LINK_WAIT_IATU_MIN, LINK_WAIT_IATU_MAX); > + mdelay(LINK_WAIT_IATU); > } > dev_err(pci->dev, "Outbound iATU is not being enabled\n"); > } > @@ -236,7 +236,7 @@ static int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, > if (val & PCIE_ATU_ENABLE) > return 0; > > - usleep_range(LINK_WAIT_IATU_MIN, LINK_WAIT_IATU_MAX); > + mdelay(LINK_WAIT_IATU); > } > dev_err(pci->dev, "Inbound iATU is not being enabled\n"); > > @@ -282,7 +282,7 @@ int dw_pcie_prog_inbound_atu(struct dw_pcie *pci, int index, int bar, > if (val & PCIE_ATU_ENABLE) > return 0; > > - usleep_range(LINK_WAIT_IATU_MIN, LINK_WAIT_IATU_MAX); > + mdelay(LINK_WAIT_IATU); > } > dev_err(pci->dev, "Inbound iATU is not being enabled\n"); > > diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h > index 96126fd8403c..9f1a5e399b70 100644 > --- a/drivers/pci/controller/dwc/pcie-designware.h > +++ b/drivers/pci/controller/dwc/pcie-designware.h > @@ -26,8 +26,7 @@ > > /* Parameters for the waiting for iATU enabled routine */ > #define LINK_WAIT_MAX_IATU_RETRIES 5 > -#define LINK_WAIT_IATU_MIN 9000 > -#define LINK_WAIT_IATU_MAX 10000 > +#define LINK_WAIT_IATU 9 > > /* Synopsys-specific PCIe configuration registers */ > #define PCIE_PORT_LINK_CONTROL 0x710