Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp184778pxb; Wed, 3 Nov 2021 02:21:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKdVrxtV32PSXfx/dKL0p9IfZhYpY0nP4cRdEtg0+6rIe+xOx3RHb1hu32Uacpqu2jan5H X-Received: by 2002:a92:c263:: with SMTP id h3mr16501092ild.322.1635931293548; Wed, 03 Nov 2021 02:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635931293; cv=none; d=google.com; s=arc-20160816; b=Jykw7MY3tNnZGBNJL87/oEvApCsbLDtIztz1E1q0o22Sp6e97TQXGqASS9dK60oXmh +ZtflyZtaDMALZz2BZ8h4og9x92lMXSuQTs0yKtxY2UwB/7w6gV+7h2WGD29T1Usvc5N NTv1Ru1plAle02VAcM2RfLzHsIlC/ApQp4K93XAMGwdlbm/R01r4p4oN37KVrL9RLt0N nIEBcQQsaF3eRD05eJYktgceWj8oSqwJoeB6gl2YbWkWjjYNOlBq9mpANKGXszyNHcZS NzWmkGz2S4ZShRy6JyKlbGcUsqgB2ctYov32qDK/dlgRXthLGL9F0hOHvH/UjJoiddfe kjog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=FdCg3e0Gwi5y3/o458qrVWVoU7UhKyiLjyePMFkXn6E=; b=M8bIC6/OIqg25Leim+EIUv6oN6F1N8fDMNQMnTMWekJ3n/SZIBLs+bBdEOscZnUi1W IBT6RpFAzFY43sOHecrGFE+mpxAOU2IqCqxYS/KeS/dOP0qxMdG5LILhtBrDQUvoGvNe /iFEMQlqjuek84I2fCWfBM2RDH4GsgkMl1gNcvKADvg5vq8f9zGMsqLWhoXfehKcqzPo avIk0+CmVdacBDaKXC4pgVUvFA5HZrsWxMMQP/VVj8J0h0IZZcHRYRE+8/fRkc0ldXde zGdwzT6s5KdX48/12zd8dAO1MiGZ6neclBwdL/FoOcbxkmB9zs5aFcZboeRJ6dYdg1Xz pDgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="utOpz18/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si3292103ioq.24.2021.11.03.02.21.21; Wed, 03 Nov 2021 02:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="utOpz18/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231338AbhKCJWC (ORCPT + 99 others); Wed, 3 Nov 2021 05:22:02 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38900 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231240AbhKCJWB (ORCPT ); Wed, 3 Nov 2021 05:22:01 -0400 X-UUID: 81b2f125b4a4481993f1f838972f7b03-20211103 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=FdCg3e0Gwi5y3/o458qrVWVoU7UhKyiLjyePMFkXn6E=; b=utOpz18/wQtiEKpwmNI7KOxcqS+RbDlTyqGnjgnswtKNLOYNRMUVR+6CZ5rGnIW44DzHfEAjSlX/XYEjZCO4MOe8uImCGe1bLR9zipuayjxLfJHt7sKKMzBGtSie39viC1utEIxTA8iMdayGZ5biXLPjjil+DR/+O4KeWhGjswU=; X-UUID: 81b2f125b4a4481993f1f838972f7b03-20211103 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 766378157; Wed, 03 Nov 2021 17:19:21 +0800 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Wed, 3 Nov 2021 17:19:21 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkmbs10n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Wed, 3 Nov 2021 17:19:20 +0800 Message-ID: <8dfc07306b853126e8109fc953fd6388b63c65d2.camel@mediatek.com> Subject: Re: [PATCH v4] media: mtk-vpu: Ensure alignment of 8 for DTCM buffer From: Irui Wang To: houlong wei , Dafna Hirschfeld , Alexandre Courbot , Hans Verkuil CC: Linux Media Mailing List , "moderated list:ARM/Mediatek SoC support" , LKML , "kernel@collabora.com" , Enric Balletbo i Serra , Dafna Hirschfeld , "Tiffany Lin =?UTF-8?Q?=28=E6=9E=97=E6=85=A7=E7=8F=8A=29?=" , Andrew-CT Chen =?UTF-8?Q?=28=E9=99=B3=E6=99=BA=E8=BF=AA=29?= , Minghsiu Tsai =?UTF-8?Q?=28=E8=94=A1=E6=98=8E=E4=BF=AE=29?= , Mauro Carvalho Chehab , Matthias Brugger Date: Wed, 3 Nov 2021 17:19:19 +0800 In-Reply-To: References: <20210920170408.1561-1-dafna.hirschfeld@collabora.com> <9475ac5b-79fe-da0e-ed1c-a91275cad46e@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksDQoNClRoZSAibGVuIiBvZiBzaGFyZV9idWYgY29waWVkIHNob3VsZCBiZSBhbHdheXMgOCBh bGlnbm1lbnQ7DQpkbyB5b3UgaGF2ZSBvdGhlciBsb2dzIHRvIHByb3ZlIHRoZSBsZW4gaXMgbm90 IDggYWxpZ25tZW50IHdoZW4gZXJyb3JzDQphcHBlYXI/IA0KPj4gWzU4LjM1MDg0MV0gbXRrLW1k cCAxNDAwMTAwMC5yZG1hOiBwcm9jZXNzaW5nIGZhaWxlZDogLTIyDQoNCk9uIFdlZCwgMjAyMS0x MS0wMyBhdCAxNjowMyArMDgwMCwgaG91bG9uZyB3ZWkgd3JvdGU6DQo+IEFkZCBtdGstdnB1IGRy aXZlciBleHBlcnQgaXJ1aS53YW5nIGluIHRoZSBsb29wLg0KPiANCj4gT24gTW9uLCAyMDIxLTEw LTE4IGF0IDE1OjA3ICswODAwLCBEYWZuYSBIaXJzY2hmZWxkIHdyb3RlOg0KPiA+IA0KPiA+IE9u IDE4LjEwLjIxIDAzOjE2LCBBbGV4YW5kcmUgQ291cmJvdCB3cm90ZToNCj4gPiA+IEhpIEhhbnMh DQo+ID4gPiANCj4gPiA+IE9uIE1vbiwgT2N0IDQsIDIwMjEgYXQgNjozNyBQTSBIYW5zIFZlcmt1 aWwgPGh2ZXJrdWlsQHhzNGFsbC5ubD4NCj4gPiA+IHdyb3RlOg0KPiA+ID4gPiANCj4gPiA+ID4g T24gMjAvMDkvMjAyMSAxOTowNCwgRGFmbmEgSGlyc2NoZmVsZCB3cm90ZToNCj4gPiA+ID4gPiBG cm9tOiBBbGV4YW5kcmUgQ291cmJvdCA8YWNvdXJib3RAY2hyb21pdW0ub3JnPg0KPiA+ID4gPiA+ IA0KPiA+ID4gPiA+IFdoZW4gcnVubmluZy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