Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2298758imj; Mon, 18 Feb 2019 03:39:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IbfHX2Wx7tToRrRrnENUSnJ4GpQI/E+xa8ztDkxq8dfIRq3nMXP3uBcKn8yTN3pGp+EGtW6 X-Received: by 2002:a62:b511:: with SMTP id y17mr23898692pfe.199.1550489990421; Mon, 18 Feb 2019 03:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550489990; cv=none; d=google.com; s=arc-20160816; b=DVGNDwoTyY/pd6bjD1GhAjsj9DlAt4fP6vrpbuxl4XNcBKahA05Ocz9WP8E4FGA8v6 WFm7uyBXRnhzbEFNZQbhvuCNoLtaQctBMhYw15QrV/JVhp6xOrhb57oJ/znwPeNLnmFO xJGT6nDtqVzvZlu9bRpTtXrFWgIOpmMhFNb1SSGjKTGIMJkERf37VXfBxr6BtqwvQO7Q STqaP27x48lOQPX1ArG7OCaMX8Ai9bd7SR/OWzTNL5x2kn6rUjXYZ1oAVXd3ru5uYl1t YLhJCiQqB8nfoSQ9RM3g8iQ91yduj96kUf3qBOmWBDklv5aqCQVrpPatsTt8CxbNEdKP 6dqg== 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:nodisclaimer:user-agent:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature; bh=YMX7KHTrkqmhhe7gWzILSrkQX+85ML/6tHdenMQqE5A=; b=Ouylq/W8gNBcjeomJd6WmKOhkjfoLvB62WB9EO2dAbeqxPWIFP7Nx7f7phRT2lH24x XhHXuBt7YJmvRnmRpQUiwF72dJnn6cKwsyc4p1SVXI0+cS1vsShA3JnnQEIPlGXbsJ8K nXEiNRm8jQHIRDg/9zt+/d4gHmgijQ531/jDAO9BGHMILJSYuteldwcnEfpARP019GvC 3mAmHj7hg+4S8GrGCyXTMHAmT/w5vNFeGycJ+n4D18iIeq4oxU8gyGjqiPJ1ODmYkwbj Cn9DI2ah80kn8SeiXnUGEbT9PVlk2MQmtd/a8dilyU6PdGC8NgLFcrCHZLXr5wUs5BOu LdUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=fxo5XYLC; 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 s2si13203643plp.380.2019.02.18.03.39.33; Mon, 18 Feb 2019 03:39:50 -0800 (PST) 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=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=fxo5XYLC; 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 S1729775AbfBRL2A (ORCPT + 99 others); Mon, 18 Feb 2019 06:28:00 -0500 Received: from mail-eopbgr50088.outbound.protection.outlook.com ([40.107.5.88]:20288 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727423AbfBRL1B (ORCPT ); Mon, 18 Feb 2019 06:27:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YMX7KHTrkqmhhe7gWzILSrkQX+85ML/6tHdenMQqE5A=; b=fxo5XYLCEU6M7/lPLlBeqNJYi+XdZaeNC+4afEX9eG7Do6WtHBlcdqP75H6ilVxvlut+2N7+xIg9uMbITKUmjnJUK+RAfb1ei+T/kyeJVGeoVgKB0Fa4hiDYhdeoOvSnUr+/t/s0ZofR47x6h2ixz/Fmb8pqYqFoke4uQrhaK9c= Received: from AM0PR08MB3025.eurprd08.prod.outlook.com (52.134.93.10) by AM0PR08MB4514.eurprd08.prod.outlook.com (20.179.32.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Mon, 18 Feb 2019 11:26:57 +0000 Received: from AM0PR08MB3025.eurprd08.prod.outlook.com ([fe80::6cf2:41c2:1a33:9b18]) by AM0PR08MB3025.eurprd08.prod.outlook.com ([fe80::6cf2:41c2:1a33:9b18%3]) with mapi id 15.20.1622.020; Mon, 18 Feb 2019 11:26:57 +0000 From: Brian Starkey To: John Stultz CC: "Andrew F. Davis" , Laura Abbott , Sumit Semwal , Greg Kroah-Hartman , =?iso-8859-1?Q?Arve_Hj=F8nnev=E5g?= , Christoph Hellwig , Liam Mark , "devel@driverdev.osuosl.org" , lkml , dri-devel , nd Subject: Re: [PATCH v2] staging: android: ion: Allocate from heap ID directly without mask Thread-Topic: [PATCH v2] staging: android: ion: Allocate from heap ID directly without mask Thread-Index: AQHUt1KdPElFkHXe9k+icWeJGBgTbKXfqYyAgAEgeICAAIkxgIAEN9sA Date: Mon, 18 Feb 2019 11:26:57 +0000 Message-ID: <20190218112656.fkbdflsifbxjy6v6@DESKTOP-E1NTVVP.localdomain> References: <20190128214408.25442-1-afd@ti.com> <20190215105057.jujgm4k77rhkvmo7@DESKTOP-E1NTVVP.localdomain> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: NeoMutt/20180716-849-147d51-dirty x-originating-ip: [217.140.106.49] x-clientproxiedby: LO2P265CA0041.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:61::29) To AM0PR08MB3025.eurprd08.prod.outlook.com (2603:10a6:208:5c::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Brian.Starkey@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fe607ca5-0761-40c3-15e2-08d69593fde5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR08MB4514; x-ms-traffictypediagnostic: AM0PR08MB4514: nodisclaimer: True x-microsoft-exchange-diagnostics: 1;AM0PR08MB4514;20:wkqsXeZNaju8ZzlKgABePq+5cfuSyrT+FaNEXPqb5dFHgRq4qvp0c/SsImWib9d4dV1aap9Uk5x62ItQYwFvIeJ/7PgJxRwyC3Oz33Y2YLjSLqYEyg+C4XGPSwEmFFS/ptUWREs9g8RhhbrMry33M09imfKb91BP6fdCYHX4k2E= x-microsoft-antispam-prvs: x-forefront-prvs: 09525C61DB x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(396003)(376002)(346002)(39860400002)(366004)(199004)(189003)(81166006)(8936002)(486006)(25786009)(68736007)(8676002)(305945005)(5660300002)(7736002)(81156014)(97736004)(476003)(86362001)(1076003)(6246003)(66066001)(44832011)(6506007)(105586002)(71200400001)(106356001)(478600001)(6436002)(7416002)(186003)(71190400001)(76176011)(102836004)(53546011)(11346002)(72206003)(26005)(14454004)(386003)(3846002)(6116002)(6486002)(229853002)(99286004)(54906003)(316002)(58126008)(52116002)(9686003)(6512007)(256004)(93886005)(4326008)(6916009)(53936002)(2906002)(446003)(33896004);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR08MB4514;H:AM0PR08MB3025.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Xsq3kfeMpGuPUEeRYI8OQ8cXiQ8Dg/j0hM4pHD1GJc6sypzg49tf8Yd8tLM3aSZeSEV1TsA5KIW1ST/9+q0YdE/o82V2NKbzijbvYt1C4va3VjQF1GwnPJCGvkLQowAjYVlqKJVZGJnx5x0DTY66tZJlqfcx4EhSdxmdIB8Ul0htd2NflHYZySdZ9gdrapC5l2BYxwfs01wyWpKgJvid5GTwD+5cR9h1dDsXmxjcN1BmaWlruAVKOhRKgzHq0/92p/LfltoiUcUjMsaNiPP3gtmWKeC/nwkb5VLNOLB/0r23hlb3tciXfgm9WkMFXjoBLEXRfc7Z9sSkZJ5TTI2KsELEArUTLBhd7/NBLI+5yyIkIMoaUSDAyZoMIeUjeSomX16OqbprssK3j6/Uy8tukjrJHIB9B15VpltjS3LwzTY= Content-Type: text/plain; charset="iso-8859-1" Content-ID: <163CD559665D0F40AE1104D0A2CCD0ED@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe607ca5-0761-40c3-15e2-08d69593fde5 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2019 11:26:56.9492 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4514 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 15, 2019 at 11:01:59AM -0800, John Stultz wrote: > On Fri, Feb 15, 2019 at 2:51 AM Brian Starkey wro= te: > > > > Hi John, > > > > On Thu, Feb 14, 2019 at 09:38:29AM -0800, John Stultz wrote: > > > > > [snip] > > > > > Some thoughts, as this ABI break has the potential to be pretty painf= ul. > > > > > > 1) Unfortunately, this ABI is exposed *through* libion via > > > ion_alloc/ion_alloc_fd out to gralloc implementations. Which means it > > > will have a wider impact to vendor userland code. > > > > I figured libion could fairly easily loop through all the set bits in > > heap_mask and call the ioctl for each until it succeeds. That > > preserves the old behaviour from the libion clients' perspective. >=20 > Potentially, though that implicitly still caps the heaps to 32. So > I'm not sure what the net benefit would be. >=20 It's purely a transitionary compatibility measure. Users of the old API inherit the old limitation - they shouldn't care about that. Alongside it, we'd want to add new function(s) exposing whatever the new API is. Cheers, -Brian