From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933036AbcBYLR5 (ORCPT ); Thu, 25 Feb 2016 06:17:57 -0500 Received: from mail-by2on0056.outbound.protection.outlook.com ([207.46.100.56]:18432 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756606AbcBYLRn (ORCPT ); Thu, 25 Feb 2016 06:17:43 -0500 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; From: Robert Richter To: Marc Zyngier , Will Deacon , Catalin Marinas , Greg Kroah-Hartman , Thomas Gleixner CC: Tirumalesh Chalamarla , , , , Robert Richter Subject: [PATCH 0/2] arm64, cma, gicv3-its: Use CMA for allocation of large device tables Date: Thu, 25 Feb 2016 12:02:42 +0100 Message-ID: <1456398164-16864-1-git-send-email-rrichter@caviumnetworks.com> X-Mailer: git-send-email 2.7.0.rc3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [78.53.84.114] X-ClientProxiedBy: VI1PR02CA0042.eurprd02.prod.outlook.com (25.162.7.180) To BN3PR0701MB1605.namprd07.prod.outlook.com (25.163.38.28) X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1605;2:la6JZIJznXE7s5H+5tRAqIVXpEOe2GBBvzWICcMb7GeAEy4cRCNBOTCyhxnWv/rGXD/rHbERvIQV+f8oSWfdJDuP1vP2Et9wFyHUr4lNficWb6yQbl3Omj++3k+20JOFwvRBxrTGOxP1TcnOWdgsqg==;3:5r7HxSmb+9Yo5oQei4QJJfFr13u7c+Pm742UJxBHnz8knBq0xmJZC6zlkn4e/FXWDgPf6VsEKq6iwXkGuBAtEdz3Zd0RO9h/p7+NBVcSKVTdC6u+bNsQo+4/RYDlrbSb;25:PtskJiBQQwp/OuYiyWP7aWsxkDqQ4bD2XjqzFWlCcd4Eb6mgFhfrxhOuYvtjwSX99keEtk0gL+ADMySgUH7UXW/lJ3xKFUvT5Jgk/xkMb5MFCE6hgl+hqlF9rMPV6vz+RZmTqcYOR21zhMebApDCsMIa2OZ0qYG6nuI1Lz4SZP5NHMuimIT4jEJoyUN6tlbT/mSwcUMaVG4y8/JS2lrhzPFWFssaSpxU83ObdUE/ygwyGXJb3qRJsQ20i6N2TYazmqPx/Peen2mlXFf2A9+J+Y7/mVh6J8inxrOmq/ThEsb3GpvAtSY98VQmHOJ1BCVLTAx7EX1Zj8pbbq41pcHwgQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1605; X-MS-Office365-Filtering-Correlation-Id: e67bf4fe-e98e-4613-8a04-08d33dd34782 X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1605;20:t+gCmjMIU/YN18zX1gpRzuW7MzchkpUbp/8VSl0EIxy4I4d39TbEyrgzfFMqP+zhn/ouwpJWWiK95D8anMGHbJ6JXhzPteetJYwmPjxzxpalhSq1cn8eIxv0a76474Mn5ntPZK93GoRGFQqSHAMsrM0t+BEbeRGrm0GoEm2Q717tUPZChbsHgriCFENjTanbljmJmAem+MWmzAorneN8CuT/ZSFhqiQTk+KXpjBcvRQMK8yhLMkZEn9wNcTxr8YqRe0TNpSJxTzHYcWqYK8qPILoJabUFyaDd9dd8HVcNfid9svYeG3qyhYN+QzaY0zSbY2ppzZvTdnS2odVOBblJowqzfGwrOBKkrCDbEKyLpSuxCwr5RBz5nDq2CumpkDBOaNONJ1lFViCuc0Kiipkndayf7r6iJfawPDVDvOJysVdyBqSX0E612jSW0YZeIL1tjpyTnVDwN4TEYExYdRYF1vuKLlVICh604YdP0cOVR6pEC1mp4MsJO8fpxVS9iYGN5aRTfVgysYYuBMqZHzYi7xScyDk7BoawvlOXr7oHlwIBUsx2O90zOq0wUg/Xa2JQu/wEJB2kjkIC6p6J1/vbPoOov23FcO4qTU42Ij7GmQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BN3PR0701MB1605;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1605; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1605;4:bfZtkmPv+PCBRelKEiYwBpZehXsLD6Q0oRsD/CiNMrrrvRJ26PppylgymlpCPGd+IDXFhWdvZPVsojgDMXM7AfUWmhBmqzWgrV8BLQkA+LbrY3za3sT9ewwZE1KFDxpIgtKNbD97DcIadzxsVY1uLoRhNVblT2Ca73vQIIKHiHS+qGMzrERU65W7mpuSgEy0kPXvoRe72grfoNJf2oxrkCP5ESyrtLsXpS3ZJeUZnZFR1jobGWIfBnyTy9f0V8L45Nd04Z+G3LqIIv8jVa0JX6jumj7LzWWMl45sFfci/I5A70ZpiIj2k4UH0+PlEygPlSeYXBA3foTGAoie7EXQaqktFzfgSi2V95YxvmQ+ur5vu7F5XHNqQyNrcuO7A2NS X-Forefront-PRVS: 08635C03D4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(48376002)(42186005)(122386002)(33646002)(50226001)(5008740100001)(47776003)(50466002)(50986999)(229853001)(5001770100001)(1096002)(4326007)(5001960100002)(36756003)(5003940100001)(2906002)(586003)(6116002)(19580405001)(3846002)(19580395003)(189998001)(40100003)(77096005)(66066001)(5004730100002)(87976001)(92566002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0701MB1605;H:rric.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1605;23:rMj9s9QdM6OceM1Oh/zQXmnTZsI5AOhyURRxsD+QgwsIiDbCs8OJby96ggE605m7SB5tmbf1hSsdIqaSXh2q6VdPs8EoXdJt88ITUWfk1TuTJBoCJiWV9iABqrqmBDed6+vRHwsVLhHRmnibXzG6vOVYifCnJh5Ho2KShbBid0E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: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2016 11:03:21.6971 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1605 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robert Richter This series implements the use of CMA for allocation of large device tables for the arm64 gicv3 interrupt controller. There are 2 patches, the first is for early activation of cma, which needs to be done before interrupt initialization to make it available to the gicv3. The second implements the use of CMA to allocate gicv3-its device tables. This solves the problem where mem allocation is limited to 4MB. A previous patch sent to the list to address this that instead increases FORCE_MAX_ZONEORDER becomes obsolete. Robert Richter (2): mm: cma: arm64: Introduce dma_activate_contiguous() for early activation irqchip, gicv3-its, cma: Use CMA for allocation of large device tables arch/arm64/kernel/irq.c | 4 ++++ drivers/base/dma-contiguous.c | 14 ++++++++++++++ drivers/irqchip/irq-gic-v3-its.c | 30 +++++++++++++++++++++--------- include/linux/cma.h | 1 + include/linux/dma-contiguous.h | 8 ++++++++ mm/cma.c | 6 +++++- 6 files changed, 53 insertions(+), 10 deletions(-) -- 2.7.0.rc3 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by kanga.kvack.org (Postfix) with ESMTP id DDD986B0253 for ; Thu, 25 Feb 2016 06:03:26 -0500 (EST) Received: by mail-pa0-f49.google.com with SMTP id yy13so30504274pab.3 for ; Thu, 25 Feb 2016 03:03:26 -0800 (PST) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0060.outbound.protection.outlook.com. [157.56.110.60]) by mx.google.com with ESMTPS id b90si11869506pfj.165.2016.02.25.03.03.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Feb 2016 03:03:26 -0800 (PST) From: Robert Richter Subject: [PATCH 0/2] arm64, cma, gicv3-its: Use CMA for allocation of large device tables Date: Thu, 25 Feb 2016 12:02:42 +0100 Message-ID: <1456398164-16864-1-git-send-email-rrichter@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: Marc Zyngier , Will Deacon , Catalin Marinas , Greg Kroah-Hartman , Thomas Gleixner Cc: Tirumalesh Chalamarla , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Robert Richter From: Robert Richter This series implements the use of CMA for allocation of large device tables for the arm64 gicv3 interrupt controller. There are 2 patches, the first is for early activation of cma, which needs to be done before interrupt initialization to make it available to the gicv3. The second implements the use of CMA to allocate gicv3-its device tables. This solves the problem where mem allocation is limited to 4MB. A previous patch sent to the list to address this that instead increases FORCE_MAX_ZONEORDER becomes obsolete. Robert Richter (2): mm: cma: arm64: Introduce dma_activate_contiguous() for early activation irqchip, gicv3-its, cma: Use CMA for allocation of large device tables arch/arm64/kernel/irq.c | 4 ++++ drivers/base/dma-contiguous.c | 14 ++++++++++++++ drivers/irqchip/irq-gic-v3-its.c | 30 +++++++++++++++++++++--------- include/linux/cma.h | 1 + include/linux/dma-contiguous.h | 8 ++++++++ mm/cma.c | 6 +++++- 6 files changed, 53 insertions(+), 10 deletions(-) -- 2.7.0.rc3 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 From: rrichter@caviumnetworks.com (Robert Richter) Date: Thu, 25 Feb 2016 12:02:42 +0100 Subject: [PATCH 0/2] arm64, cma, gicv3-its: Use CMA for allocation of large device tables Message-ID: <1456398164-16864-1-git-send-email-rrichter@caviumnetworks.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org From: Robert Richter This series implements the use of CMA for allocation of large device tables for the arm64 gicv3 interrupt controller. There are 2 patches, the first is for early activation of cma, which needs to be done before interrupt initialization to make it available to the gicv3. The second implements the use of CMA to allocate gicv3-its device tables. This solves the problem where mem allocation is limited to 4MB. A previous patch sent to the list to address this that instead increases FORCE_MAX_ZONEORDER becomes obsolete. Robert Richter (2): mm: cma: arm64: Introduce dma_activate_contiguous() for early activation irqchip, gicv3-its, cma: Use CMA for allocation of large device tables arch/arm64/kernel/irq.c | 4 ++++ drivers/base/dma-contiguous.c | 14 ++++++++++++++ drivers/irqchip/irq-gic-v3-its.c | 30 +++++++++++++++++++++--------- include/linux/cma.h | 1 + include/linux/dma-contiguous.h | 8 ++++++++ mm/cma.c | 6 +++++- 6 files changed, 53 insertions(+), 10 deletions(-) -- 2.7.0.rc3