Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755441AbbKXWtn (ORCPT ); Tue, 24 Nov 2015 17:49:43 -0500 Received: from mail-bn1bon0147.outbound.protection.outlook.com ([157.56.111.147]:61312 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932317AbbKXWsH (ORCPT ); Tue, 24 Nov 2015 17:48:07 -0500 Authentication-Results: spf=permerror (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none;freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; From: "J. German Rivera" To: , , , CC: , , , , , , , , , , , , , , "J. German Rivera" Subject: [PATCH RESEND v3 06/11] staging: fsl-mc: Changed DPRC built-in portal's mc_io to be atomic Date: Tue, 24 Nov 2015 16:31:19 -0600 Message-ID: <1448404284-22258-7-git-send-email-German.Rivera@freescale.com> X-Mailer: git-send-email 2.3.3 In-Reply-To: <1448404284-22258-1-git-send-email-German.Rivera@freescale.com> References: <1448404284-22258-1-git-send-email-German.Rivera@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD028;1:4ZtQHKVozUqH3siDniYoANhb5VUZz8RY+Sta7R0upObTrieHxOGiFv0Wgb4upRmj1BGNFoHR08Hvz6WNzL4v2gHNSBB01/ddVcaWfi3gMLTfYGhMSsCLnw/jZ1lMpaRTeRG6v6cQRlGSJtowfANTlb76crdmS9403S83JE106/ir4FYBBufq+/D2wlRSrrVewdR/X9rY250RtW7actHZ9EA+d6AauVKQe/TNgoC2ofqC48gXjS3Ge73j71oyukV3TC+1P2b+dR94YDH8fJ6CC/XEZX+rNra0DL1OGaovxoJidQuLfgj6Gqww/CioziR5C95lu/NuEy75RC+0pXfkJu7MpRzp70+Iga0+5eLDmecV1iM5qXIN+w3PmrKoAC47yYQeWTmkb/RGIXHZY4nKjj/ffHitvrd7G7W6krJUZ6DYHykjcUgkqAZfpUsjc1yIzcgG5Jmx3xc9ttv5KLfVqA== X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(448002)(3190300001)(189002)(199003)(6806005)(50226001)(86362001)(76176999)(87936001)(19580405001)(5001960100002)(189998001)(85326001)(97736004)(50986999)(5007970100001)(107886002)(5001920100001)(48376002)(106466001)(81156007)(5008740100001)(104016004)(50466002)(19580395003)(92566002)(77096005)(5001770100001)(36756003)(11100500001)(5003940100001)(586003)(2201001)(229853001)(2950100001)(4001430100002)(47776003)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB0654;H:tx30smr01.am.freescale.net;FPR:;SPF:PermError;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0654;2:Ekb0Pd58m9ERCOP/OjR6YmvX4vTd4MSfBIrqtVexum5dMjksAzW+oICA5mV4uSWkLfHiVchzP5K8ocCNOv+9zIXPJzeHtY4YQLcND50aIGLIhOt5xDoSVppYnrasDJBo572ZGO+qXCkEI51HllfJAw==;3:+r91dA/M5AYD4HtVPwOKzB1ApKHtaELzAS7tS1YyEnQALmq7YkcoHBHZ4MEVFp/O93EjvB2yV8b+NwaR/CbR5sWFYvgdfQwWvEf/2PEVdKYANHCmTB1m2fjSlUAw8C9h/+RkL6oLimiVPlivBT++9h1vFGO0mnv+zVAjZakpEKZNzz9pkbVOPyYPnvkTGX2Vxy8bXNzJUobgOBfZqfoBM/ovz1XgdVW14wm1qv1uJ6c=;25:pla6HRwYXW5JmPZIF73zIMhi/lzQtp+1HBG5VET3ppU9hgGIuhDGCT3T3pt/Ur2byAy+8m23Ic1WlRq6cX3rt1t44t4E0BUFuiImCJRHbZBACXccKO3IQGaurh/Jr0YeCoRlwdkzJymKBbH0XNhbYntyDqgSiTGfNkynuAXL7VzsxSU+9Yh5MUAqNkkKcoHE+qVLLGM0Srgmmqndv7xzM5wAK8d0tKVOVxowlEJgOgHXFOj+MGsb4DUT00VVc1RUhe1GjGbPsXbnZDGUBux7Yw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0654; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0654;20:Vwe0nZiCoOG9Vf3lDdkB0MXpllId2BXG5SfhlEJNAYGyyV0IfqM19ApcWzqbJl/ruo4qOdOis52GH2KOz/GpHmO+g0nB6Xo6G3S75ARZVhxfQNKF/dAl+phx8iI/pXjY0c62j/DJFGnRVmq8A2ku/C4xD+xEqI8Ry0Wz5lUmYz2Yy50NQfa3ouqhV9g8eqzPey1NeVSlwG82RFZGCwx0RfZHqXzeEpHtFZ3XiPEgPJOGZB17RNgdGmiVkZnKoUKDaUgEXbYynX37H8Z9IlNEkxw6F+1EZpLVeFIFS5NeRGizNHm7B3ObDgjVt5kr074DaK+X+eSKBOrgaJGqActzotgVa0hxHQwuDAFZ2oPo2iU=;4:U3aLJMw8iTFVOdLAEf69CjZs0LguBrZYloW//dPour20IW7UlmN75LDmHdX7Sf6/PX7eUKis69ayArK2CmR89PszJ100RSPONf6bZrN5vvy1Qch+NsFgi1q5lLABV/1y3ALpEs/wKoJlQF1RpFjoNaqfabnbBY+fg2uN/tmOEpJglqap7wFrYBUN1Kk7wMYU8h/u2l3yyO94yAqiBip/Nz0SXDzrbtxaeftyGMDKbB9gRUqWAogAUppRgYkKnPcg1l2dfL3qNOHfUY8wl7Q592qqtyDM1pLN26CNsyo+AEYGH2kvSAX8ZJmzRGASp0ZydUd7PWTzxwrJ8onUrKdeCiLfR9c/ykhhkx+qgtVp5LRJfvY8EHzaRZoJ8juXC37dQwKadw7klhIEWuE94zIWM9gfQFD0Irsy8WSMTb9lqHrexst7cipubFHxAD0xiZx6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:DM2PR0301MB0654;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0654; X-Forefront-PRVS: 0770F75EA9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0654;23:plkwdvEqJxKFdBYokW67uGMS7t6cGJO7HmA0NU4?= =?us-ascii?Q?qU9lWXtztWqsKzk72sJyPqtujEhVCfzsJkZUNXshMtORkfMU2s5CJzZGZS5z?= =?us-ascii?Q?nc1wyNqIau8h4gMjK2I7GJXXQ6rxLRbQJ/fnSeFFh7+sf5zLWQELGC/DSy0F?= =?us-ascii?Q?m80+K3qjE3K7lVCUua0z7e4VTHxa/XO7KmqqHadEwDSxtpLWHxU2RiekhZDs?= =?us-ascii?Q?lvPRNyAfLP4d/T1GGgvSdDt94gMSkP/c78T8W/h8e3PoyDl0hZeZaRT/NQCy?= =?us-ascii?Q?kw7j9fX9290NgDO/wMJiQXsZMQufCs3b5vlutmBqDI2auUjgITxf1tHEMN3U?= =?us-ascii?Q?x7OZeNgIwRAAX+Xejv60JLoVnhg3NXjV9X9EHbBPX55r6y+6ToCBdiAMjJVc?= =?us-ascii?Q?z1ZRbynU8JjUsqyimka2ejxTGdcItlH77OcQEDue0RjxqWvqx67Ro+fWJ5DH?= =?us-ascii?Q?wubep6VJO32r7Muw6O9h3JuW2IP5OUNKSZyYuS+JJfIoGl9GWqHBbl6Ekv31?= =?us-ascii?Q?+JXPn/XsEsvieUCuSXhgvbL7xHiMW/NEKLQ+++ocMZnq5dDM4SdcSEJ6XCpt?= =?us-ascii?Q?s7+IhqoR4vTkdkM5Lg+7AQwwh/Krl7S5kTlfSO/E0JLcmm092+8eVhulMLxU?= =?us-ascii?Q?Dzf9GPzdnVOJUK5iiBvhyRLsDUE8Cwq8yiCOgWakaoxsp1WP5LH94SQoh0+Y?= =?us-ascii?Q?6Dnp6ythLnkErXv1K3DyUxLvl+fX4DtJ2hNJuWM5svJXNFvMlsfNEM8JxatS?= =?us-ascii?Q?BSneG5pFy0CiWsZmRLB9FaPP4a/L5DsphOYDIhi9oCeL1Q7hzvY9qxeRIXij?= =?us-ascii?Q?7WcAKUK69512+mrCd2w20KDgtS+RWNYRZFR3epORYF0zsZEhk+2TpwuwRPsf?= =?us-ascii?Q?Mz2jYpQeNbuLf2z51UsOvWUhOLEMZHmZnrYhWCmXgjgTaj88NMcDCXO6ev0O?= =?us-ascii?Q?7FwKecWFyIKaISRTdjXPhaPAhYmGjKfJ1M8H2b2soT1YfTTT+1ebpKElTPv4?= =?us-ascii?Q?pq70v8E5nbqchLYztObr1wfP0hL4jPoClcX1V6/bEqx0OpKgvpoEWNhVQMRS?= =?us-ascii?Q?gkh3r8y6JNcvCubJzhYXJxinlTEckisowwrmJWxPae3xUTWnbkw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0654;5:poJgWZprf3cN+/cW5fGt8O35OQHkDEeXTYPi8JKS+4VbT3I1MsW4yh/rdMOC0jrFW9uvlRYMCgaY9EHYS1H7fK75swcu66BfihzbSEze32e7LtoV1uF9mC8DcmTH080QOuFh6AOAyVHEDifgCvijLQ==;24:aIrIIvntGunZVlL4zANEy2UY9Jw3qslHfpVQJetpFmJoairDm12k/On8F1NTrEDujreIQV/CIFbTHiKliJJE8zRKbjRwTp15v1uJeuHsDFI= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2015 22:48:03.5118 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0654 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1937 Lines: 55 The DPRC built-in portal's mc_io is used to send commands to the MC to program MSIs for MC objects. This is done by the fsl_mc_msi_write_msg() callback, which is invoked by the generic MSI layer with interrupts disabled. As a result, the mc_io used in fsl_mc_msi_write_msg needs to be an atomic mc_io. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c | 4 +++- drivers/staging/fsl-mc/bus/mc-bus.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 2c4cd70..767d437 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -396,7 +396,9 @@ static int dprc_probe(struct fsl_mc_device *mc_dev) error = fsl_create_mc_io(&mc_dev->dev, mc_dev->regions[0].start, region_size, - NULL, 0, &mc_dev->mc_io); + NULL, + FSL_MC_IO_ATOMIC_CONTEXT_PORTAL, + &mc_dev->mc_io); if (error < 0) return error; } diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc/bus/mc-bus.c index 84db55b..d34f1af 100644 --- a/drivers/staging/fsl-mc/bus/mc-bus.c +++ b/drivers/staging/fsl-mc/bus/mc-bus.c @@ -702,7 +702,8 @@ static int fsl_mc_bus_probe(struct platform_device *pdev) mc_portal_phys_addr = res.start; mc_portal_size = resource_size(&res); error = fsl_create_mc_io(&pdev->dev, mc_portal_phys_addr, - mc_portal_size, NULL, 0, &mc_io); + mc_portal_size, NULL, + FSL_MC_IO_ATOMIC_CONTEXT_PORTAL, &mc_io); if (error < 0) return error; -- 2.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/