Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2814882rdb; Wed, 4 Oct 2023 12:13:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2h+tIvy/fPUZJGvsRcZocTA7HMR0yDYxqAi5aNRQb8raLM+1tNWYlLBouqfn7/pjxwZtX X-Received: by 2002:a05:6a21:6da3:b0:15a:3eaa:b7f8 with SMTP id wl35-20020a056a216da300b0015a3eaab7f8mr3802989pzb.50.1696446838392; Wed, 04 Oct 2023 12:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696446838; cv=none; d=google.com; s=arc-20160816; b=WsvTgTnTbvtuSYWLFE9O8CfDYtmb93imOvkKqwBFF5aOhDciBMmjEzjanWjbfw/H5x eY5cslQKUlqXH+hU3iA2bsKXTH1dN+6O/RMaeEXEQyguYgTh0VO3cNN4lDJuaENafLyL a8GaZTVT0cbtXFpZDJz58w/NRKoj90iwGYYpQ+ZW3pVcD9aUhd+jTj++fFBldG/ajEb6 QhQmErUJhaPFvNK7ZlPkbrDs0WIGhaIL4RFimfGjSAB8RmTG9s750NFUTf8+D35rrd2E aF1kWAyzIjRby/fbuI9hK3P6H2MtpWSXbDOd069LfhIeL0NfMAzcCiwPap+wxwAV3GtX Eytg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=I56p0VYzN7IWNopjI2fcWoO2idpM2RTO92wRBOIXaDA=; fh=DtbSrta8WSwcey98peVyaWZMEolOGIMy37iGisvDYJQ=; b=IE3bsK7E1FjBM/popU81nC1ukYKak/S03JGlnmp5mPUpYvLJK/o8fHcUFpdlVY9UxP zXYAvo3ieiI+o0VHPmDJWtua0S7VBRwmbMEfsTf01De39yj+zlM4hNtK/b840fBgM1fx JMTqMIUHpET/0+cw+vuEuoUCYEdI4xlTo4IQWDVtfHo6pzBocpQr/EgPP5uAxkfMC0g0 hyZHvp6CJdbfDIbH7pJxJXma3lJgfrF87a/6MKpIe1t9PxYnPr6IhvywLInOILa2kde2 Bk5UoVSNtD58VR6+M7mwnTwlQh/tbEAUubYJ+gQU/7v/NIKJ0JBXTyit9ey1rYkeQSmg 4hng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=h3AqwleR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id y19-20020a63ce13000000b00578af607626si4243990pgf.668.2023.10.04.12.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 12:13:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=h3AqwleR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5514A8022EA6; Wed, 4 Oct 2023 12:13:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245363AbjJDTLW (ORCPT + 99 others); Wed, 4 Oct 2023 15:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245382AbjJDTLE (ORCPT ); Wed, 4 Oct 2023 15:11:04 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 091AC1FFA; Wed, 4 Oct 2023 12:10:09 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 394IaBL3008139; Wed, 4 Oct 2023 19:09:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=I56p0VYzN7IWNopjI2fcWoO2idpM2RTO92wRBOIXaDA=; b=h3AqwleRCwZligPx/m+vZr3DUi+ahENv46k6jE2Oz++ffrv09aassLpPnbjbBzq3xkGF 6oDJ2fCADotzQOd1gVwAeoaARE50clK822yS0JiAu14TOvJlYqsBNUNClcEHWXdoI2pL MwzlR11gFLS4cYNSBqUNjifDURdJ5+WXx8LIQ3s88wSvCxKArSiaSan0ya198+tZfO7Z BOHv4Wq7vBcVBGPvz2shhtfigz/N4OCnE4DLY6ePLIBDfkBexNwF6aN6ugHjJow2WdFY w/rRsBh6Ljn0h0yZsJaf7YfRQaqMNxeTDnbR2OngrKyS/Zmquh7oDGUBg3O/dpYmyQ9M sg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3th8ck114y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 19:09:06 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 394J9590012308 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Oct 2023 19:09:05 GMT Received: from [10.111.179.185] (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Wed, 4 Oct 2023 12:09:04 -0700 Message-ID: Date: Wed, 4 Oct 2023 12:09:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] tee: amdtee: use page_alloc_exact() for memory allocations Content-Language: en-US To: Devaraj Rangasamy , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , , "H . Peter Anvin" , Jens Wiklander , Sumit Garg , "Paul E . McKenney" , Catalin Marinas , Randy Dunlap , Peter Zijlstra , Steven Rostedt , Daniel Sneddon , Rijo Thomas , SivaSangeetha SK , Josh Poimboeuf , Juergen Gross , Ard Biesheuvel , Ross Lagerwall , Yuntao Wang , Sean Christopherson , Jarkko Nikula , Herbert Xu , Tom Lendacky , Mario Limonciello , , , CC: Mythri PK , Nimesh Easow References: From: Jeff Johnson In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: RCdCaBI3qUQfLKdPrsNEANnaxeQopRjk X-Proofpoint-ORIG-GUID: RCdCaBI3qUQfLKdPrsNEANnaxeQopRjk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_10,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 mlxscore=0 impostorscore=0 malwarescore=0 mlxlogscore=690 adultscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310040140 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 12:13:37 -0700 (PDT) X-Spam-Level: ** On 8/29/2023 1:19 PM, Devaraj Rangasamy wrote:> Use page_alloc_exact() to get buffers, instead of > get_free_pages(), so as to avoid wastage of memory. > Currently get_free_pages() is allocating at next order, > while page_alloc_exact() will free the unused pages. s/page_alloc_exact()/alloc_pages_exact()/ everywhere including subject to match the actual code change?