Received: by 10.213.65.68 with SMTP id h4csp923313imn; Tue, 27 Mar 2018 11:16:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+iRz+5OQj5+psNevVMufkb4maqv8ZGinxSHC4qKQzGCeeLtsv+pfud9B06u9I84obzve9E X-Received: by 2002:a17:902:8c88:: with SMTP id t8-v6mr326778plo.329.1522174592671; Tue, 27 Mar 2018 11:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522174592; cv=none; d=google.com; s=arc-20160816; b=LMU5a+fERMdU1hJ8gdK6ZLEOeYmjfxP7JhLgpZNelyiuyt88NYLlesH6IE9sFSnumY JTy7dZ606MvRzlXHPGTp3gqjamg4T0giQBqZfVwjSK67NJUI5YMT2lhHfmhHH0CSt6n5 ABk7F2DPKTv0ddmMC3l4GfiN1KoBHtWLqSXaPm6/Vk2pIyOVS3QM5dP5jesOKirquZ4s o3RheL/814R/qTTpnhiCImYkWQ3o4efy7zvn3hl0Z1TMwSmJ4yjKgmjbwjh52jCxLkOL +Lp4pIdl35FJVTjd9oMgZ+Lfk4w+KYFbgGPGiF3mhz8njABFfj08z84IezukPSLBo7BV PUmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=IiVJ48M4zQwPlL85GMwhQ8wd8c8hh4PdbVDrxMO2lz4=; b=Yy7bgtupqmZwuvKRfrBYNaWNGHbbixtkbzJVNbpYCvh6xBLmSutStK6p901bjUaBh4 T/zPpAuq7ZSIZpuauv6ydrdcGn6rL5sH3tkjwDaLaR7HQNwnTsBvpLUgiICvzwyDVOGj ar1vK2LOIbf8QLeN38IlFrc/bPNoorNafsb/8IPbXb0SjaMZtdV7RI6CtaneXhIUKtme kH1hCdLgNwZYVSPFiB56YyckAWGzNKk4VDxrOt5Kl1r2xrRa0ReEf70pKzZ+7g2Pe2zj PQwEk9Xn1MUaOj9f1jFIrmD0ujemL0CwdPTguYXWM8YPh9gHSc3vKx7gjCpWItyCwvlX uFPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=ClPMnGem; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15-v6si1743842plj.96.2018.03.27.11.16.18; Tue, 27 Mar 2018 11:16:32 -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=@nxp.com header.s=selector1 header.b=ClPMnGem; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752088AbeC0SOP (ORCPT + 99 others); Tue, 27 Mar 2018 14:14:15 -0400 Received: from mail-he1eur01on0064.outbound.protection.outlook.com ([104.47.0.64]:48208 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751752AbeC0SOK (ORCPT ); Tue, 27 Mar 2018 14:14:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IiVJ48M4zQwPlL85GMwhQ8wd8c8hh4PdbVDrxMO2lz4=; b=ClPMnGem4Gqiz3cvaMa/boCfc94oDsHsmYp6WUHD8G3TiWMfwkOPUcHfrrHEH207+jGgzipJXcGlfa4EGZS8vPv0HOEI5Mdlpnrb+STFwnf7ozE1rdklXf2sRPhErctzDLsjwb4vGC/VI3eIsQND5vSaOnqX5wlLm82b6bW/MfY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=roy.pledge@nxp.com; Received: from otc-sw1.am.freescale.net (192.88.168.1) by HE1PR04MB3001.eurprd04.prod.outlook.com (2603:10a6:7:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Tue, 27 Mar 2018 18:14:03 +0000 From: Roy Pledge To: devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, ruxandra.radulescu@nxp.com, arnd@arndb.de, gregkh@linuxfoundation.org, leoyang.li@nxp.com, laurentiu.tudor@nxp.com, stuyoder@gmail.com, catalin.marinas@arm.com, horia.geanta@nxp.com, robin.murphy@arm.com, Roy Pledge Subject: [PATCH v4 1/4] drivers/staging/fsl-mc: Use devm_memremap/devm_ioremap for DPIO Date: Tue, 27 Mar 2018 14:13:31 -0400 Message-Id: <1522174414-30380-2-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522174414-30380-1-git-send-email-roy.pledge@nxp.com> References: <1522174414-30380-1-git-send-email-roy.pledge@nxp.com> Reply-to: roy.pledge@nxp.com MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.1] X-ClientProxiedBy: CY4PR20CA0023.namprd20.prod.outlook.com (2603:10b6:903:98::33) To HE1PR04MB3001.eurprd04.prod.outlook.com (2603:10a6:7:1f::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 652b1e1d-f086-4cb3-ca43-08d5940e87fb X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:HE1PR04MB3001; X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB3001;3:Kj8v4VGhyMnSypKw/LD75R4kAiP8eNR4kxbqnKDHmp37ugWALzcpXo3HYkorEJ/HMLvVVb+wopl5AkOQZMQKo7GGBMDGbsQzsWv3gjTdEJlkXVnfi1UnckSvr5j+aNGrybtzgpwQG9k+3zoMuVdtjd0AExIQwj8xolObfTn7cYTMDaJIyjQp+DTAK6KwzUdO9gyoT1WFwyqBT8c4tEOEDO84UZLIT8q2sdyePQq5O4er2zWQb1Z60gu+wLGGJSRB;25:EC0kXUE4Zr78c/oxjagpZORyP6vTs3TLEcku/UA/wYJVSOPWFbzCcf68HRFxDo9MFYzyWXZBlNivlBPKUh++F3jdWZYBUDQi4JrniF6DjIgd3XuZLQcoguJZO4ieH2jUt5hogTdbzylLypomQiSv81P+ZCJ5U+qAdIy87IMlJSQqCv6cdVa2xlJgSIo22sy3wRK1jhBcvoJ/7sbYyFWDaVydsPxIkx1miv0hlWy53NY4Ubj/eyif2G0wOVAHnGZhwBLGcW3PAwFZamD+6BL/Yt5DqbecnN5oapGvqnx4OxxNgxJ31FxLIgLHDNa7hFf71za6XrDfWKC/F3q254kkHQ==;31:08rj8Q/m2eneeHvBP87GwwjXE87qTJJ1Op/o1jEpXnniBrOSnnThyoai+KHbBP1xDqUOGrDJGEhTcdsM+UFLi88emTRXKq7+0zz6p5je7CHmN8Y27n/NjRbCVUlrDOX3TGraOaDjEmsv5D+NVLPJ4Tg5ehC9QSPRIplV+4S++/njczhCCAuNg7KSYux8/j+Tf+DZEzmfS3cQ8EyjpzcjVlxV1ra3vBOtwLc5tgHGUhI= X-MS-TrafficTypeDiagnostic: HE1PR04MB3001: X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB3001;20:/WFXo8vDPcP2HI7J5a+D7sQSXSZthzrInZl1mRsE7N+181cvzuWhVSKW1y1yHSdi8Ld1YoD/6XFFDAR1G7kEGLjXba7Gdcdz2vkbaOmP1q6meaB1L0uCoNBUIxCsZAWDCnAuqqnMSy43WoJ3eRX2U9+I+AsWlNsL2sQp4QVgBg41IufbZXYAP0fBlLGInwE1a4Jcyulv2+Bf0JUarVP44OHADWsP9yJ2ICxhl3CES5ez3I6hIi4VLWGnt1a16vaiqgFVARQTpva5cKaHAjcBif9KhEr5aPUgKXbkjbcKDMSAxdv1dqTvOFHDfYLv7MCiuHYLpdtO0XOFscHS1WFYI0wgAlDG4WQrrpaH5efT1bnphhVmgwiLIV5NSp7KXb/Mr7fcn25Y4wDiqK2wNGZNPIrlmObqOhHqP8alS3EBJoS002Wl2NnLbOX3IZ0Tdf0A3ha8MBJorw6osdaek5CFvSxoETVlgYrIEFlpZJZFIVuz+todnc6ePh1KDXfR5Hij;4:fJi7m0YWw4tSUx3ElivLrnFbhN17se569rO23n41Rb1QXf7og1bkGs8hJyDx7r4OVKuWPctSUcOMtlapG0reWoYIK0oiWtFOTZmzQpJ6QLrKm1x3drHmzVCVWgAsxk5ccgu9MyS9LMBKn/xPAfCJZzGRWXSkYFChHQOYgo6HHhqyST34lkYEgJfQcBMY8bpXPNNeU8jiheGCD/8oXkOm0YmjSdXkwFhZ3lM6DnFIrz8306y+MFhZbV+PyTk0azaSPYrm1uZY4ez/J8XMYustblPujJuEbQw0gWlIBHhICOnas8iZ1sxVmrAnm4g/w31udAX7tPNxFvMdfVqWAeLKZzUJ6PN+DboFnnYk+drWEX4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:HE1PR04MB3001;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB3001; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(979002)(346002)(366004)(39380400002)(376002)(39860400002)(396003)(199004)(189003)(16586007)(16526019)(47776003)(8936002)(43066004)(106356001)(316002)(66066001)(36756003)(53936002)(50226002)(305945005)(2906002)(50466002)(5660300001)(86362001)(4326008)(3450700001)(81156014)(6512007)(81166006)(446003)(48376002)(7736002)(956004)(2616005)(6486002)(11346002)(6666003)(76176011)(8676002)(25786009)(105586002)(486005)(97736004)(51416003)(3846002)(478600001)(186003)(6116002)(486005)(26005)(68736007)(39060400002)(386003)(6506007)(476003)(52116002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB3001;H:otc-sw1.am.freescale.net;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HE1PR04MB3001;23:ck+//BRWBxT+z/5P1+buU2big1p/87xUdR4OKWsx/?= =?us-ascii?Q?GbNhmC+/D1sq4OMBTyRuBqWNB4ci6hx+d0Y38A8alPp5c/5JxoWFMyN5iWP0?= =?us-ascii?Q?ctBSADy/n17VJFTE3xubyKiVeuZ4x/av5qdD0TNmGMTOIzFpfzkeqZSkdAwJ?= =?us-ascii?Q?LEdQE5e99SkRvR4bOYwoYQMDvWvd6tuJSPuJLdfjnOaN4jQnscpya9m9cwK7?= =?us-ascii?Q?Y9KZwM1ki8Sko9mzybXQ8NQoKTveHQS7M/HQf2Q+1XXPLaJnYGcOiJtUJFce?= =?us-ascii?Q?EidPMyVaFTBgz0SLvgIprArVUkDEcqeeVWm6OU6XbfFYS+55Gzm2BlZkSKnL?= =?us-ascii?Q?TxP6KdndZvg0NLn6Fw9xIwKuDI49ZMI1tp6ynARJMZGnn7j0AkrAe5GnhXOr?= =?us-ascii?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yPqONJBQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB3001;7:RPcUCwu4nAER9u4o+Ox/ADUqzE43iyDV1sLj6AP8wWKEEp6D9dwXsUTJnzns4KcObBnDN9g0OpX0HnVY2sDo9WzNUJ+FJVMdmtpuI77NZc91hqT44V5v8XxnFeAx7jsIIETye+V9PZrs6z3RpTVtE9m8E5nse9YOlKTNxonzxBTBhnDsjLLqq0kQGyucZDatXRNiNDqGw/zDxVy/SCsFR9/w8dgaFPgRAFM9Y9lnM55uFo5U2lED/B+6IcmFCgKs X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 18:14:03.6080 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 652b1e1d-f086-4cb3-ca43-08d5940e87fb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the mapping of the QBMan cache enabled area from using ioremap_wc() to devm_memremap(). This allows the __iomem attribute to be removed from the pointer (which makes sense as accesses treat this as cacheable memory not IO memory). These changes allow sparse checks to pass. Also use devm_ioremap() for the cache inhibited area so unmap occurs automatically when the device is released. Signed-off-by: Roy Pledge --- drivers/staging/fsl-mc/bus/dpio/dpio-driver.c | 19 +++++++++++++++---- drivers/staging/fsl-mc/bus/dpio/qbman-portal.h | 4 ++-- drivers/staging/fsl-mc/include/dpaa2-io.h | 2 +- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c b/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c index 182b384..ffcbd5a 100644 --- a/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c +++ b/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include "../../include/dpaa2-io.h" @@ -146,10 +147,20 @@ static int dpaa2_dpio_probe(struct fsl_mc_device *dpio_dev) * Set the CENA regs to be the cache inhibited area of the portal to * avoid coherency issues if a user migrates to another core. */ - desc.regs_cena = ioremap_wc(dpio_dev->regions[1].start, - resource_size(&dpio_dev->regions[1])); - desc.regs_cinh = ioremap(dpio_dev->regions[1].start, - resource_size(&dpio_dev->regions[1])); + desc.regs_cena = devm_memremap(dev, dpio_dev->regions[1].start, + resource_size(&dpio_dev->regions[1]), + MEMREMAP_WC); + if (!desc.regs_cena) { + dev_err(dev, "devm_memremap failed\n"); + goto err_allocate_irqs; + } + + desc.regs_cinh = devm_ioremap(dev, dpio_dev->regions[1].start, + resource_size(&dpio_dev->regions[1])); + if (!desc.regs_cinh) { + dev_err(dev, "devm_ioremap failed\n"); + goto err_allocate_irqs; + } err = fsl_mc_allocate_irqs(dpio_dev); if (err) { diff --git a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.h b/drivers/staging/fsl-mc/bus/dpio/qbman-portal.h index 4488a44..69db3c8 100644 --- a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.h +++ b/drivers/staging/fsl-mc/bus/dpio/qbman-portal.h @@ -15,7 +15,7 @@ struct qbman_swp; /* qbman software portal descriptor structure */ struct qbman_swp_desc { void *cena_bar; /* Cache-enabled portal base address */ - void *cinh_bar; /* Cache-inhibited portal base address */ + void __iomem *cinh_bar; /* Cache-inhibited portal base address */ u32 qman_version; }; @@ -102,7 +102,7 @@ struct qbman_release_desc { /* portal data structure */ struct qbman_swp { const struct qbman_swp_desc *desc; - void __iomem *addr_cena; + void *addr_cena; void __iomem *addr_cinh; /* Management commands */ diff --git a/drivers/staging/fsl-mc/include/dpaa2-io.h b/drivers/staging/fsl-mc/include/dpaa2-io.h index f71227d..ab51e40 100644 --- a/drivers/staging/fsl-mc/include/dpaa2-io.h +++ b/drivers/staging/fsl-mc/include/dpaa2-io.h @@ -52,7 +52,7 @@ struct dpaa2_io_desc { int has_8prio; int cpu; void *regs_cena; - void *regs_cinh; + void __iomem *regs_cinh; int dpio_id; u32 qman_version; }; -- 2.7.4