Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp75156pxb; Sun, 15 Aug 2021 23:46:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0JkAZTJbJhs7hqsypaBFF0RU2GHFYTzBMxRtOp8aHMtnI0zwLgjkywwZ25MvsnVWfEknV X-Received: by 2002:a5d:9ad0:: with SMTP id x16mr4986222ion.182.1629096410451; Sun, 15 Aug 2021 23:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629096410; cv=none; d=google.com; s=arc-20160816; b=uSQ7mRBAdJiJkPF3iS/pRjG3MN3QrXVz+tYwXnz0ckmQDbg/D7v9wI0/TVgpQ7YyDf rwsR/JnuS9Pdq1gz6d87utYNJGwkrXt76eXrQVphdzzU1InEne0xMo2qzbHuBgCDMfam uoH5qsFUKtgy76RKJ98taIaCyCidQsVB6wHe9Jj7gI1fX8km5QCNcSd0/DwushDS7KrP hSUikILM2gmyQLc2BEgik7Ldskdir8OIv6SVdf5hg6MWBP0/IcqYG707pspK1oaPDeKl vX9UnLb89TRH1wlVI2w53Qm0ffopcVOWjFEMFsLtfvNWC3+BxOB54rCGAV/9rtFUMmmf b8+Q== 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=12//E0MrCca/AisDc97mnYI9peKrrOex0Lod2WXevtQ=; b=qcWthkqgrNXzw3HDX2ff3tODQ4QWonx5yoJNLHsirlD7w3pL97QwctcJPVL8S2VFJX pv7NruSZDxADwfGe0ChLeuYiNqcNWjpOkMdhQ4n3nIsYapLEhPu0u0GXZ1xobwi83UMo VaY6JfdfTJ7hp7BEWzJ0BgFbG4A7iezd5kpFf33TufmR4QFwUbueulJBeon2jRqDaVef /yjE4maxaOYXvVzwreUD2vbIUt+p9uPQWasqr/GX7Ux4VEjpzUDLCoFk2npNBJwo/78B ZYI9c7ZqGi4lBr7WlWcEwPTvDdhT+rDX/p/q1LPpW2c1DgWlul8QPZJuVfuTTCbvojji ppRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ssV5h5u8; 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 y17si15140083iov.62.2021.08.15.23.46.39; Sun, 15 Aug 2021 23:46:50 -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=ssV5h5u8; 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 S233485AbhHPGir (ORCPT + 99 others); Mon, 16 Aug 2021 02:38:47 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:18128 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230442AbhHPGiq (ORCPT ); Mon, 16 Aug 2021 02:38:46 -0400 X-UUID: 5d7d5474ea4e4f7eb6e3e368c49424be-20210816 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=12//E0MrCca/AisDc97mnYI9peKrrOex0Lod2WXevtQ=; b=ssV5h5u8EZW1zd9G1ePs3eVH5JNCm1zmIaRx0YE/J818wXBjfxdvaOggHc08CB3aWCOIdkUaGp+pnCJYlxFPq8Jc4jgVEAYSNJbQRAk35FDFeoIjVqeAlY5dfj4vd5rYQSR27o7mL6RvOPKuNqnkMP6ScxCBhLcvhq9TXE2KV64=; X-UUID: 5d7d5474ea4e4f7eb6e3e368c49424be-20210816 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1073371218; Mon, 16 Aug 2021 14:38:12 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 Aug 2021 14:38:01 +0800 Received: from mhfsdcap04 (10.17.3.154) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 16 Aug 2021 14:38:00 +0800 Message-ID: <76560e846d084f89e37cc8ccd7ca714e539c2803.camel@mediatek.com> Subject: Re: [PATCH v2] media: mtk-vpu: Ensure alignment of 8 for DTCM buffer From: houlong wei To: Dafna Hirschfeld , "linux-media@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: Alexandre Courbot , Enric Balletbo i Serra , "hverkuil@xs4all.nl" , "kernel@collabora.com" , "dafna3@gmail.com" , "mchehab@kernel.org" , "tfiga@chromium.org" , Minghsiu Tsai =?UTF-8?Q?=28=E8=94=A1=E6=98=8E=E4=BF=AE=29?= , Andrew-CT Chen =?UTF-8?Q?=28=E9=99=B3=E6=99=BA=E8=BF=AA=29?= , Tiffany Lin =?UTF-8?Q?=28=E6=9E=97=E6=85=A7=E7=8F=8A=29?= , "matthias.bgg@gmail.com" , "courbot@chromium.org" , "hsinyi@chromium.org" , "eizan@chromium.org" , Date: Mon, 16 Aug 2021 14:38:01 +0800 In-Reply-To: <20210806082810.9378-1-dafna.hirschfeld@collabora.com> References: <20210806082810.9378-1-dafna.hirschfeld@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 771D58D45B93244CED2E1141867E5E3129C614AEA2FA04CE8851AE9F5553180F2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIxLTA4LTA2IGF0IDE2OjI4ICswODAwLCBEYWZuYSBIaXJzY2hmZWxkIHdyb3Rl Og0KPiBGcm9tOiBBbGV4YW5kcmUgQ291cmJvdCA8YWNvdXJib3RAY2hyb21pdW0ub3JnPg0KPiAN Cj4gV2hlbiBydW5uaW5nIG1lbWNweV90b2lvOg0KPiBtZW1jcHlfdG9pbyhzZW5kX29iai0+c2hh cmVfYnVmLCBidWYsIGxlbik7DQo+IGl0IHdhcyBmb3VuZCB0aGF0IGVycm9ycyBhcHBlYXIgaWYg bGVuIGlzIG5vdCBhIG11bHRpcGxlIG9mIDg6DQo+IA0KPiBbNTguMzUwODQxXSBtdGstbWRwIDE0 MDAxMDAwLnJkbWE6IHByb2Nlc3NpbmcgZmFpbGVkOiAtMjINCj4gDQo+IFRoaXMgcGF0Y2ggZW5z dXJlIGNvcHkgb2YgYSBtdWx0aWxlIG9mIDggc2l6ZSBieSBjYWxsaW5nDQo+IHJvdW5kX3VwKGxl biwgOCkgd2hlbiBjb3B5aW5nDQo+IA0KPiBGaXhlczogZTY1OTlhZGZhZDMwICgibWVkaWE6IG10 ay12cHU6IGF2b2lkIHVuYWxpZ25lZCBhY2Nlc3MgdG8gRFRDTQ0KPiBidWZmZXIuIikNCj4gU2ln bmVkLW9mZi1ieTogQWxleGFuZHJlIENvdXJib3QgPGFjb3VyYm90QGNocm9taXVtLm9yZz4NCj4g U2lnbmVkLW9mZi1ieTogRW5yaWMgQmFsbGV0Ym8gaSBTZXJyYSA8ZW5yaWMuYmFsbGV0Ym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