From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Cyrus-Session-Id: sloti22d1t05-3221737-1517987112-2-10591792131879575425 X-Sieve: CMU Sieve 3.0 X-Spam-known-sender: no X-Spam-score: 0.0 X-Spam-hits: BAYES_00 -1.9, HEADER_FROM_DIFFERENT_DOMAINS 0.001, RCVD_IN_DNSWL_MED -2.3, SPF_PASS -0.001, LANGUAGES en, BAYES_USED global, SA_VERSION 3.4.0 X-Spam-source: IP='140.211.166.136', Host='smtp3.osuosl.org', Country='US', FromHeader='com', MailFrom='org' X-Spam-charsets: plain='us-ascii' X-Resolved-to: greg@kroah.com X-Delivered-to: greg@kroah.com X-Mail-from: driverdev-devel-bounces@linuxdriverproject.org ARC-Seal: i=1; a=rsa-sha256; cv=none; d=messagingengine.com; s=arctest; t=1517987111; b=dTXRgkHKbcmBe+XRZjxoK5j3n2Rsk6oi6c33ywrUpY0bZbZ VCycYU8x+t0GWJLmr1WdH7j/Ge8xhMcuJtAf788FzN4FTKo4P9xFuunCFnvx8Ctg Q3fbvgd2b1Na+IEOgXL1q7VnV3rhgklaM0tQ/+G/YE1ancfQMeLOh6gBy/uoDtXS mvhV2ZSHEntzjMHtcr7aA6eMuotQhygQCGJSl3jptRHRG/tbcgGTu0H3vpZhWo+/ B8zlrP2iliK2HihStKlC6S7z1zdyxZmSAfaTbK5GbSxnj6KQYMSLI/sA87jXWXqk 3EVPb05JRFyH6gMcdzGgbrcf4M7GqcBWwcbM8bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=subject:to:references:from:message-id :date:mime-version:in-reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:content-type :content-transfer-encoding:sender; s=arctest; t=1517987111; bh=o OpeWU1GibFX7TW7I1t5JjUxKi+xz0KAMte80jEfSTE=; b=pv8puuZZ/dqdmbMk4 CQIWM8wp5CkzbDzTG/ioKaxr2eyDnMIwMdtz397Dj5OGpUgd352QBkktQrriOO7Z JZ4xVnaBhaktxJ/Ozx0uLjOWyYaKsoy38JFRbZzPXMFXXxB4/1JnLz7H/QulhS4g J/J2GGZYFoDB0sYzHC+qOJgPkjNG44PIHDASwx7vZmQ3gAjIuRNu6Q6CpNX6EqaI pC6IDege0VTGOAOb5Gvn9uUcP5TwWAxEwuo3CUfvkaTiBvBiLnHPzXS8Xpaa3S0G tor30p3G36zKvMZ+q+harVe8JjiDPT+fOS7G7WNSf5Pp74/iVqX3sVS1v2I8ea9k pGnzA== ARC-Authentication-Results: i=1; mx1.messagingengine.com; arc=none (no signatures found); dkim=none (no signatures found); dmarc=none (p=none,has-list-id=yes,d=none) header.from=intel.com; iprev=pass policy.iprev=140.211.166.136 (smtp3.osuosl.org); spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org smtp.helo=silver.osuosl.org; x-aligned-from=fail; x-ptr=fail x-ptr-helo=silver.osuosl.org x-ptr-lookup=smtp3.osuosl.org; x-return-mx=pass smtp.domain=linuxdriverproject.org smtp.result=pass smtp_is_org_domain=yes header.domain=intel.com header.result=pass header_is_org_domain=yes; x-tls=pass version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128 Authentication-Results: mx1.messagingengine.com; arc=none (no signatures found); dkim=none (no signatures found); dmarc=none (p=none,has-list-id=yes,d=none) header.from=intel.com; iprev=pass policy.iprev=140.211.166.136 (smtp3.osuosl.org); spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org smtp.helo=silver.osuosl.org; x-aligned-from=fail; x-ptr=fail x-ptr-helo=silver.osuosl.org x-ptr-lookup=smtp3.osuosl.org; x-return-mx=pass smtp.domain=linuxdriverproject.org smtp.result=pass smtp_is_org_domain=yes header.domain=intel.com header.result=pass header_is_org_domain=yes; x-tls=pass version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128 X-Remote-Delivered-To: driverdev-devel@osuosl.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,471,1511856000"; d="scan'208";a="17868506" Subject: Re: staging: ion: ION allocation fall back order depends on heap linkage order To: Laura Abbott , devel@driverdev.osuosl.org References: <58951af2-a84e-7d7c-e956-ece3190aa8c2@redhat.com> From: Alexey Skidanov Message-ID: <0217ee91-25fa-f563-81bd-ba4ad4dc9377@intel.com> Date: Wed, 7 Feb 2018 09:05:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.24 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" X-getmail-retrieved-from-mailbox: INBOX X-Mailing-List: linux-kernel@vger.kernel.org List-ID: > Yup, you've hit upon a key problem. Having fallbacks be stable > was always a problem and the recommendation these days is to > not rely on them. You can specify a heap at a time and fallback > manually if you want that behavior. > > If you have a proposal to make fallbacks work reliably without > overly complicating the ABI I'm happy to review it. > > Thanks, > Laura > I think it's possible to "automate" the "manual fallback" behavior. But the real issues is using heap id to specify the particular heap object. Current API (allocation IOCTL) requires to specify the particular heap object by using heap id. From the other hand, the user space doesn't control the heaps creation order and heap id assignment. So it may be tricky, especially when more than one object of the same heap type is created automatically. Thanks, Alexey _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel