Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp272792lqh; Thu, 28 Mar 2024 01:12:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbASXfrAiHAHmjl6uYRjWUyCtQz3axhZYNEQtGxaPVxdi4QyDycVB8p+IMtihaP6azJiHiOnCUFFRHrLGP1Wg2Rb8qNdU9E8BQ7IWECg== X-Google-Smtp-Source: AGHT+IEPVEaYAUdqZHUmAC8NDg9uermPGtnc3Qvl0vl1uvE4BbfC3wwAXWaFZAb12Mfs01RYP/gn X-Received: by 2002:a17:903:41c4:b0:1de:f82b:4c53 with SMTP id u4-20020a17090341c400b001def82b4c53mr2689407ple.12.1711613546469; Thu, 28 Mar 2024 01:12:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711613546; cv=pass; d=google.com; s=arc-20160816; b=raS1/a2xhE5QJr1y5Qmu+RySeh3EV1D6HEsHAo3BhLTJOPdWTsWO6CIhy+6g2eqoaJ N3J+PLHJuh6ymB1xXyBUVHsKWBKDCQYLEc9kT5WGVZCgxwGiPbvWntilCRDQLB9DM+YF K8iYAMbLcD1r7UlghnWUcSF3HCjnSu/HDasua6MCXaNmrZLBtWIts5P4mqVJyWq1f83R hCm1nE4e5jp7zXiydRGtSQ9zDIwq3eB33EQAZh4XHQUngCS3kZcTyCfdkKq6dFvghomb 4J0bsl6Hlr5uz5Vb/xPmuoJvtVJs7g4IqNjBMBqief7dql+m5qIteJW0XsH8YKLUZo6Z K8Gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :cc:references:to:subject; bh=OfEWsW2mwsoq/lauPHfZtrv5WAMzd2BmGtxRcquzBKc=; fh=xcuujIQSOSjxPDUmsHTtZeyyPnAzuCaslF85n6pjb2g=; b=psv/ZtWsRvzwRsgiZZbRwnZBrb2aXE26fYwW0K+sE8p9BcZgPSAg8t43MO7naHkr+8 pu9rFB6CNPa8yrnHNoT9BAgZ6kSic+tDO0Jim4FZadCDr72TfUtx+S9d5NQ+zAGsGNC8 MqBBAxSna43uFKR5mItQeqeFcOBk+NsbRk+A6xuaJOMnBgUZCf+UMeOVT9pOACz5TH/R 4JRt/uhH4FA/4PcZUVSfiiBw2+eY1o5TLXd22wuM5364ne9EvDvGngFyJm5rUem2jynZ sXka+biOwcVgi/QBjh8A7WETO9XUDn+GhhXflclDNSwJGkhAhX4uflLFEhLCBoZJua7/ 00PA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-122551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d11-20020a170902cecb00b001e089758cdfsi996295plg.301.2024.03.28.01.12.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 01:12:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-122551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 93906B21796 for ; Thu, 28 Mar 2024 08:01:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B3AC53E37; Thu, 28 Mar 2024 08:00:56 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5ACE84F8BB; Thu, 28 Mar 2024 08:00:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711612856; cv=none; b=qrzlrHCVc/nX4NqH7w+QlqVGPfjBK/VUFwv9JzfcduaMiN0WRPgEXGS81kCI2vBwFAnjIMn5aK5IHtYguwFzTIPBrDr0tbAO/wk9+6+SNW3Mdvt3DWXfxRPM6YLXbTeFWEKFPCkdowkFogONNbMZYa8cZdK9z5wMlKTG+dlD2NU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711612856; c=relaxed/simple; bh=KqfMhfcyKl9MR7FT4u8aDUFTZmjcq2Pn0uZW9tDQ3mE=; h=Subject:To:References:CC:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=dl3Z/XWs3C5N4LPCf5P4eOS7PgxDAh8T6JA3SiE1TaJREVD0xFsiJLyqsE2sMy1r7BsNWGiNsHQyswbFZXwLK/INlHHlyyBr0Kett2boWWH9/tRa46ehPdhNdX2hwC0xtrAI8fJfOq3uvIslzl47xwEYnkjCD+zHOmQ7+bJGQdQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4V4wsP49hTz1xsdh; Thu, 28 Mar 2024 15:58:49 +0800 (CST) Received: from kwepemi500008.china.huawei.com (unknown [7.221.188.139]) by mail.maildlp.com (Postfix) with ESMTPS id 02AC61A0172; Thu, 28 Mar 2024 16:00:51 +0800 (CST) Received: from [10.67.120.126] (10.67.120.126) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 28 Mar 2024 16:00:50 +0800 Subject: Re: [PATCH v2] scsi: libsas: Allocation SMP request is aligned to ARCH_DMA_MINALIGN To: Christoph Hellwig , Damien Le Moal References: <20240326124358.2466259-1-liyihang9@huawei.com> <5b5b9392-7fd2-4c87-8e41-5e54adf20003@kernel.org> <0ba9914d-7060-498a-beac-2b19770e1963@oracle.com> <75df3e2d-10c3-5370-3cd8-fe2fb0ff2acc@huawei.com> <03ed6449-eb57-4a55-b2bf-ecbb9787feca@kernel.org> CC: John Garry , , , , , , , , , , From: Yihang Li Message-ID: <964862d3-ebb2-59ff-8414-6fd650e421cc@huawei.com> Date: Thu, 28 Mar 2024 16:00:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500008.china.huawei.com (7.221.188.139) On 2024/3/28 15:45, Christoph Hellwig wrote: > On Thu, Mar 28, 2024 at 04:36:12PM +0900, Damien Le Moal wrote: >> My bad: it is kmalloc() that can return something aligned to 8B... > > Yes, that's new on arm64, and possibly soon riscv. Thanks for the discussion, I will still aligned to ARCH_DMA_MINALIGN in v4.