Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3238188rwn; Sat, 10 Sep 2022 07:42:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR7j9Pb8aIW9PHLTd4EyilNiMxWeGHtZmPXlt6aUGdVW/h8lIOYV2ypfkhzwxhWH5meYO4XX X-Received: by 2002:a17:902:ab98:b0:171:2cbc:3d17 with SMTP id f24-20020a170902ab9800b001712cbc3d17mr18615892plr.143.1662820962514; Sat, 10 Sep 2022 07:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662820962; cv=none; d=google.com; s=arc-20160816; b=RReRJfUB/Lr4RRENIm9CuXlB6xvXzR5/yY9fgCdTe9iWHH9VvgLvxQGXdSkuAl77+c MJNAwZVe/lyUozU4cM6jEC+QFJ5t/GxI5RcX7GwDzFHh+qjnGVDcAet/Wu7Pt2RwfCIS 8pcpXw/QhdbfFMoBGFKvVuE65ytHtVXPqj0hHlEdZh1WyNl3j38uFbwVowI1F0desLEO /+d7k4ZoVgY1+yp0DqrjQEZzor/jwZRWMHcz4AE5ZXioK0B1dz9Vk5dP5bkhfW0nU4IW gXdJc11b3MJ+S+T1N/lc10Rb7dWLBUxO0R/6Hjc7Zx997vCx3gOKO0i3lyFK5L3en95X 18HA== 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:sender:dkim-signature; bh=r9dCl7QhjCZXvtpCmodoTGwKF+jhrQb09rsPLN1AZYY=; b=X2zvdJK+vTOSUM8gabbs1tSv2phHxD1lM5Hx1IuzQ4JAvLycirUcCz/8/Tl9I4148a Qhu/OPr2cbjCjINFkFKGRzzkCEJDg6oz2T8QKIQRjY5dJwSBX/fQgKYUpoTMUH03IfQe YqtTicf/mhsfxBfFvUgVs3SJRagqRJEVo9D0lRalV9zH6Bz+qCXp1EIqgkLvMik06p4Q laZTNi4I9NOH591/GdoV28y8Yb+JXEe5L9lYvdKkP8D31pCGWLiVYY8uv8mJbafRpH6V Z2roELzxV32LgiHFHkLTi96Ru6BszyRo/mQHhWhwfgX9YD3bU/8FAejGEtnspTUuHN2i 5Rsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=daWbxKwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a17090a748900b001fb3040753fsi3333492pjk.64.2022.09.10.07.42.28; Sat, 10 Sep 2022 07:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=daWbxKwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbiIJOeT (ORCPT + 99 others); Sat, 10 Sep 2022 10:34:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbiIJOeD (ORCPT ); Sat, 10 Sep 2022 10:34:03 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8B795301B; Sat, 10 Sep 2022 07:33:37 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id pj10so4028643pjb.2; Sat, 10 Sep 2022 07:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date; bh=r9dCl7QhjCZXvtpCmodoTGwKF+jhrQb09rsPLN1AZYY=; b=daWbxKwCfJ9fWeKWKg07Zm8xLPXdxLUm626AwPcfeWMcljAT49UkJ2C2lN+G/WaWHB KTnBGT+1sVLuwtIS70HjbicpBr0DMv5acelE4db3yNHspPITt0kD+XABdrNEo8o45VDY CeuP+dqKcsdq1cHQATRZiAoLttsVQ0J79Ax91bKRIWnRTmua3fxd378a+v+GV36YOGUF gk/JT2r7ScBdEQMYkzdBDw9h2GJDAEzf+P4UlLlRCnvtqMuFalG+Gx50CIx6mQrlCZn9 nx7sB0B6Hf/DVwcpg2s+YR/BSV/9a0obSR7gADiNo3VN7DBhdfF0tBITu737l8yK6iMG 9a0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date; bh=r9dCl7QhjCZXvtpCmodoTGwKF+jhrQb09rsPLN1AZYY=; b=i6C9gXkTgloi/A31YJM+eSeTbAQaMChyAq9qbWvZQml4Ob68IkR/rrSIIIJfuckh47 btbYe5m2sycnPZ94p0maerOMsvnpb+jJGQfHga2DfGaZ8hX+uQdE5JmguSdssVf7Pn7F qLTl6qbNGV36kVSq+CMo2sIIT5HrtmEKJG9bCIR/ja/+qTaJ/dInn5V7aCgZYyw8LNKg wHp92ZXGBBvyz8UgdjTgiTCv1Kqx5QlX6ITRGIjbaZ+QodDEGVZfyHUpMdb4kb5Y0SJ0 OFmB0iRJB+WYL+vFwTZY1+h0bkEjQ2MnyINWINx4+EOUUqZioBcaXq3lrniOiiybpOQ0 Ujvg== X-Gm-Message-State: ACgBeo0L5i9s5CZGzByRdc5FYc1jZqMYeJ8rXNKZaTGn/j/n2VFVzxxP usgSkf7aP4fxYevepjDsclc= X-Received: by 2002:a17:902:b106:b0:176:70e2:df21 with SMTP id q6-20020a170902b10600b0017670e2df21mr18841963plr.127.1662820412978; Sat, 10 Sep 2022 07:33:32 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id y75-20020a62644e000000b005365aee486bsm1755899pfb.192.2022.09.10.07.33.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Sep 2022 07:33:32 -0700 (PDT) Sender: Guenter Roeck Message-ID: <7ff5df5b-8816-4454-70d2-656f87d6b970@roeck-us.net> Date: Sat, 10 Sep 2022 07:33:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 1/2] nvme-hwmon: Cache-line-align the NVME SMART log-buffer Content-Language: en-US To: Christoph Hellwig , Serge Semin Cc: Jonathan Derrick , Revanth Rajashekar , Jens Axboe , Keith Busch , Jens Axboe , Sagi Grimberg , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Thomas Bogendoerfer , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220909191916.16013-1-Sergey.Semin@baikalelectronics.ru> <20220909191916.16013-2-Sergey.Semin@baikalelectronics.ru> <20220910053045.GA23052@lst.de> From: Guenter Roeck In-Reply-To: <20220910053045.GA23052@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/9/22 22:30, Christoph Hellwig wrote: > I think this will work, but unless we have to I'd generally prefer > to just split dta that is DMAed into into a separate allocation. > That is, do a separate kmalloc for the nvme_smart_log structure. > > Guenter, is this ok with you? Seems to be a bit overkill, but sure. Guenter