Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp129712pxb; Wed, 3 Nov 2021 01:06:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC2mEfFhxn03VOqrH6oCL2Nc0/8xWLdO42aX7Fd1EH3+TefWU1NkpiWvmxFYSHgZqSn3Yr X-Received: by 2002:a17:907:3f9d:: with SMTP id hr29mr24189625ejc.369.1635926807753; Wed, 03 Nov 2021 01:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635926807; cv=none; d=google.com; s=arc-20160816; b=CcbD+1vPy2c0RsX/mlOEvheEpNd2zXuZWC5/Q9DZFbPyGHzLlMrGIKBBxcIdfvnpoq JXe9HowKKJgMKnXbLeMYq0D3u1Jgjuk2XFtWjC6ekccjoIIRF3JHnrTDASn+70sIC0EJ MQLWdtt+iJoaFOIuoi7qg9wgTCFgI2+YBjYffanahyEs9Pf1nGmeV08CQzqlm4ZXwAr9 a7xim7L3IZ5rGd+tJLPli+h7oNs3vn6tPB734hOMqCvKRWuS0tH5nZSTcFszh3Q+WpdP 9intWzeP4dHOWlv2ap4z/HFH5hzRcxT5cCABeJ8KBgdobBEd9U0jsd1EOPBEx0COrGJw SVjQ== 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=VYJwlQewBN6GJbnEUto0c9JoA556ekjEp/y7UAh+224=; b=E6GsmPgXqsCK410eDROmfizN7pbgt8l1kVeB1aTGZ9x6S5+/PaEt8QdEkhKJ2eenZh axBoTJtFM2MaiO1thg0qtBpdPAyvuTQqMDjXi8dWXoNnYFWclT617e6eR6jG55AxPpuq sxj+nI7DbcVNJA2fZZ9LlWVQTOYI1FXytdjpK0g8+fPvvZap/uKTIkkjEVvV1qt3Rzd0 dN4JDVTpc6CsG00fFLzEKAt/WDKa5oB1cLqp/vNnzcoSpLeEWsiWoD8dJO0ukBqoup2w IS2cI1bKJSW+7P0f+SdNsPJjV1nlLxGX9H+cmvb6q5MeCi781yxrbIghm+/sWkh52l3+ ukyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bj0vc9j6; 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 b19si3259994ede.284.2021.11.03.01.05.45; Wed, 03 Nov 2021 01:06:47 -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=bj0vc9j6; 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 S231338AbhKCIGJ (ORCPT + 99 others); Wed, 3 Nov 2021 04:06:09 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:58656 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229504AbhKCIGJ (ORCPT ); Wed, 3 Nov 2021 04:06:09 -0400 X-UUID: 5c85692030744872b371dba8f43547ed-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=VYJwlQewBN6GJbnEUto0c9JoA556ekjEp/y7UAh+224=; b=bj0vc9j62aleMBBXSbenQ5oxkjw85uvy2HNkv4Qs90H3YZ8NiZNK1maFF47B317hf+z2zRHJqBCgnc0ZGNXEhh6i8JXEZHJkeN1R8Zx9qK1i4mvMwrYX9JYnMq79YvIMpSbVFDW35cf098SuzdIP73PdwFhs6Kp3EmZN7jrm2Gs=; X-UUID: 5c85692030744872b371dba8f43547ed-20211103 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1714250672; Wed, 03 Nov 2021 16:03:30 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) 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 16:03:29 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkmbs10n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Wed, 3 Nov 2021 16:03:28 +0800 Message-ID: Subject: Re: [PATCH v4] media: mtk-vpu: Ensure alignment of 8 for DTCM buffer From: houlong wei To: , 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 16:03:28 +0800 In-Reply-To: <9475ac5b-79fe-da0e-ed1c-a91275cad46e@collabora.com> 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 QWRkIG10ay12cHUgZHJpdmVyIGV4cGVydCBpcnVpLndhbmcgaW4gdGhlIGxvb3AuDQoNCk9uIE1v biwgMjAyMS0xMC0xOCBhdCAxNTowNyArMDgwMCwgRGFmbmEgSGlyc2NoZmVsZCB3cm90ZToNCj4g DQo+IE9uIDE4LjEwLjIxIDAzOjE2LCBBbGV4YW5kcmUgQ291cmJvdCB3cm90ZToNCj4gPiBIaSBI YW5zIQ0KPiA+IA0KPiA+IE9uIE1vbiwgT2N0IDQsIDIwMjEgYXQgNjozNyBQTSBIYW5zIFZlcmt1 aWwgPGh2ZXJrdWlsQHhzNGFsbC5ubD4NCj4gPiB3cm90ZToNCj4gPiA+IA0KPiA+ID4gT24gMjAv MDkvMjAyMSAxOTowNCwgRGFmbmEgSGlyc2NoZmVsZCB3cm90ZToNCj4gPiA+ID4gRnJvbTogQWxl eGFuZHJlIENvdXJib3QgPGFjb3VyYm90QGNocm9taXVtLm9yZz4NCj4gPiA+ID4gDQo+ID4gPiA+ IFdoZW4gcnVubmluZyBtZW1jcHlfdG9pbzoNCj4gPiA+ID4gbWVtY3B5X3RvaW8oc2VuZF9vYmot PnNoYXJlX2J1ZiwgYnVmLCBsZW4pOw0KPiA+ID4gPiBpdCB3YXMgZm91bmQgdGhhdCBlcnJvcnMg YXBwZWFyIGlmIGxlbiBpcyBub3QgYSBtdWx0aXBsZSBvZiA4Og0KPiA+ID4gPiANCj4gPiA+ID4g WzU4LjM1MDg0MV0gbXRrLW1kcCAxNDAwMTAwMC5yZG1hOiBwcm9jZXNzaW5nIGZhaWxlZDogLTIy DQo+ID4gPiANCj4gPiA+IFdoeSBkbyBlcnJvcnMgYXBwZWFyPyBJcyB0aGF0IGR1ZSB0byBhIEhX IGJ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