Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp301199lql; Mon, 11 Mar 2024 03:13:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQrR6cpWoNtIatkfm6vnUkdPP1NJLxDs1XYNbU3u9ca/21vUl6hr/dZxySpoBaBjjbNWKGx1HZ0BEoxTPStDqoDQYHp8b5jr2ZnbIkXQ== X-Google-Smtp-Source: AGHT+IFxq0y+gEdioyi+M4YnoJQqbjEMgWc4m9aUI7G4vkIaoAhAt4F1gHFZYtQlL4QLxz+blmEv X-Received: by 2002:a17:902:e5c3:b0:1dd:a324:309e with SMTP id u3-20020a170902e5c300b001dda324309emr1876896plf.32.1710152026432; Mon, 11 Mar 2024 03:13:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710152026; cv=pass; d=google.com; s=arc-20160816; b=IYYeV5hRntVhqUeuWCLwebXbS2ukz9Q+n8+vv1xarlezpy1Nclq02U/EBktfJP9SOr EnU2AhxfMRaPpqhTaYmJ2x+G9fvZNIpbWRsw8YgjXX8169glwaNJalcljbMJk3xp7fjY cgtJu3dSbORbQpdg4A+eHtSZ6BJIl1BHg2AcggJdixdK3tgUJ8nN1ZVBQJWeJ5vZSFPL vP2AJz2MZc3EHdpoMTmDMEX/7xxkRE7E1h/Auyy6PkOj7LQQQ+g3KQAGQDLdw8iS2WQR qLs3+Lqqxe6qNBUkXBNgOIdurmaLtmHBwbCmhx8cQzUroxACiUHUE/TR7XgPIirsbDHD 7gBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=OW00I9htwoAsj3xBJZrkbzrUKhGDr0/+mmT+snWwiXg=; fh=5912R90ajJ/30kr971XoXy0R4kAGXP1UzaKUS76d/AA=; b=Y9Uy3UinxvEMnd7FDgCDAbmBJWZkpcuF+yVbrtuSoufNzYnCLVth4WrHbj/kuGKVL4 HAzpDOSp8I4p5jBcQGpQj9phd3SpuiOEiXV5a0AAXakAbU9C0EJGr5MRbCTnhJS0qWG0 1bPC6tKgqPEKfVyD0Ycb0hC3uUPhdRW2mOndw8fUSHRxmeouvKxwzBB0w6SKK0bE2VuT ZUku7PbNZVRtwCkGBfh/m8q/GS3s/TLWM+PiJqno6nB9kTowVtVgFLUuCWYtmFoqcwzJ XBnca4dZ37nKdavagBq7z8YdEa1bXr/btWDGPkQ/gk3ohdKsM6TXhDbQJu+2DjzNZMvG vw5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iEuDl0CX; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-98682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j15-20020a170903028f00b001dcccd329fasi3225009plr.184.2024.03.11.03.13.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 03:13:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iEuDl0CX; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-98682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B4037281735 for ; Mon, 11 Mar 2024 10:13:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95AC238DDB; Mon, 11 Mar 2024 10:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iEuDl0CX" Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31E0838DC0 for ; Mon, 11 Mar 2024 10:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710151886; cv=none; b=IBW8a/HBTv+rKmyYcHv85fu8b+MKUtm34Gi9203nJpvKEl5LFK55XWhAa9koNMnm6qDx6Uo7fuCO5zpyLzk4S0wMOX+N+R1225s/qsyl0w35Z4Z57VjzNOXRx1ekVOgKmfmQcZnTbBQKexJwcfS64VrbSVJA7tE7ENt3ZsU3Sws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710151886; c=relaxed/simple; bh=90wxFtc2yl7pC0/MOznw1zbBPujem0U2+kENHa16YIc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=D0wYOlVdFrunvTddVwpvyEPITbQHeO39ucanEoXdIicu2ecKrJpqzbKEvTNIL3BGft32QwfwC+LmM50NQqgSaxHl1c4I+WSicA+z143f4JSpzaeGfg/CwIbsCthHF2jPO07E82wb1U9KeTkHSCqiMY3B0vRSj6P20V0ZsOYjyuo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=iEuDl0CX; arc=none smtp.client-ip=209.85.219.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-dc25e12cc63so4773625276.0 for ; Mon, 11 Mar 2024 03:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710151884; x=1710756684; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OW00I9htwoAsj3xBJZrkbzrUKhGDr0/+mmT+snWwiXg=; b=iEuDl0CXWHzvdZYvg2Uqft91dUHE8s4S0nzX2JXi0jbuzaqbP/anhhfShGbtmAbj+6 dFvbr3wwsVc1l/yaFnWxdW9auVjedAAueOsEYCtd/ModbkuJ87LhwWNhfyYT9XIHG8Rg NBXdgt4kfaL/thZyayXXcL5XztQ6r/VYqwHY+b0jAUMzWM+09I0c+AYDpX/iaZWoArCu ZDCuk9xxDBrx37I/nCyzCsUY1m8U0Sf/vNFHetvMnoOOowTWDaAIQHxZQGdLCeli+uPI QlfLzQ20Zjfb5+AatcjBlMjSEpCqglJQ28Sc25aQosThpL/N1kkhnSaA4YiQrxWazKkS WDyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710151884; x=1710756684; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OW00I9htwoAsj3xBJZrkbzrUKhGDr0/+mmT+snWwiXg=; b=I3pFq1VdsL0+hEdY+UCfTeVER+JOi6gs/2uxSbSG2aX0PU00SYO7Zdb7Yz96p/sjL2 aWc1b/NAG4glmc1RruIFo7W/Mi0R0ssZa2WxX/hLGDKeA/szwcUlzWgpiKu5QRwBArVP n25QAI43WWGEW5PDq6lEJ747zF9cYBrmlvVWTHL2s80EWI8Ujl61oLFsKrsqx1kw9pme lELw+CSK4KRCarR8InIGqvopxkkhGB9srJJ10CEkHi4a/jTiEODKdJBxDUbBuyU7/nCc 2LitUlcLxOl/QA9xnCg46f1HCwOzqu4A3LegUtR7B2Gk2KC8ouIWcPNuuwxcn0S5IgvX 5FKA== X-Forwarded-Encrypted: i=1; AJvYcCWLwlas2EJaV0UKPW8lBClJmUiaDaJEj2z0dDz37LWxOACI3PcYvOodQgDtuk3tyjdlXLzWkVw/6CKLAJU7pW310mxN90F5KtVHC9nO X-Gm-Message-State: AOJu0Yx8bNWqvrdh1cu12tuhyJcQE2cpDy+OQ8jwIOXRg6FCXIjD91Uv hRLwb/Cr87MMPn906g7xSUC1jBXCZp0bAk2RfD2dUwJwubhUoE4dmFqmpxR/DXTUP6bgW65GtyX h0uIJzwYnjFNHafYuRMWNsYgUbrazYxHRZi5F X-Received: by 2002:a25:28a:0:b0:dc6:ca3a:31da with SMTP id 132-20020a25028a000000b00dc6ca3a31damr5135139ybc.16.1710151884041; Mon, 11 Mar 2024 03:11:24 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240311094947.3738200-1-howardyen@google.com> In-Reply-To: From: Howard Yen Date: Mon, 11 Mar 2024 18:10:47 +0800 Message-ID: Subject: Re: [PATCH v5 0/2] Add support for multiple coherent memory regions To: Andy Shevchenko Cc: gregkh@linuxfoundation.org, rafael@kernel.org, mathias.nyman@intel.com, hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com, petr.tesarik.ext@huawei.com, broonie@kernel.org, james@equiv.tech, james.clark@arm.com, masahiroy@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, iommu@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 11, 2024 at 6:03=E2=80=AFPM Andy Shevchenko wrote: > > On Mon, Mar 11, 2024 at 09:49:45AM +0000, Howard Yen wrote: > > In the system I'm working on, there is an always-on subsystem which > > includes a small size memory, and several functions need to run and > > occupy the memory from the small memory if they need to run on the > > always-on subsystem. These functions must allocate the memory from the > > small memory region, so that they can get benefit from the always-on > > subsystem. So the small memory is split for multiple functions which ar= e > > satisfied with their generic use cases. But in specific use cases, like > > USB3 devices which support the stream trasnsfer or multiple devices > > connect to the host, they required more memory than their pre-allocated > > memory region. I tried to implement it in a generic way and propose thi= s > > patch to give it the ability to get the memory from the other larger > > memory to solve the issue. > > > Changelog > > -------------------------------------------- > > Changes in v5: > > - Fix build break. > > - Use of_property_count_u32_elems() instead of > > of_property_count_elems_of_size(). > > Have you tried to use --histogram diff algo? Yes, I used the below command to create the patch v5. `git format-patch --cover-letter --histogram -v5 51b70ff55` > > -- > With Best Regards, > Andy Shevchenko > > --=20 Best Regards, Howard