Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp329432imm; Fri, 1 Jun 2018 01:27:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJg0vYq2o62E/VjbOK0jbckNbYXDYX3uk3LWJGTjK4+zUjs+bIElPkWVZxd0ick2dozhGDs X-Received: by 2002:a63:ad08:: with SMTP id g8-v6mr7984715pgf.74.1527841665300; Fri, 01 Jun 2018 01:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527841665; cv=none; d=google.com; s=arc-20160816; b=oZ0Jvsx7o/IPfl1Pgpc8oJTj90pxJZHOZ8Vr6Zwo5Mvqm9kqjTqeUo3vhjSfedVCUA BUDWEI7Kez79uszz9pOrP+uaZSymxLvQvM0PjLaWlIQZRGWyqgRr2fUmpMwPyoR6ChSC ToL6kDWlKy4457VKoW+zhu2p9TLdbBmd1ayq1RNrw9nK9kCkXJxrPyQQlBiDGzwsp4lS O28ct2cs4etGEAr9U29MwhJSQnW81ogITO1smHlKTQSeAMn1nTQ4pY34YowXw1Ykl7G6 nTYCZGoBMUgmEr57sg7fT+njsR7nKydEMiCdy5GGqOGMlL2RWQRuQvSXo5YM6Psaoacj Wx2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=EAintyytu7XezSNgBhkpP5K3L7c1u0OzPPohisGITRI=; b=JJCLzsBh+oeczRw/SRpM0lIiGVOMmZ9Lkzz12dtAIdD84waAwlmHaXh2g2Myn0SdYU yKhOVQRoVF6XvNUX9YC4EYW81as6z+NqfmoFVp+kSHft3FARfuJIK8R0Gw/ufmnRBK/W HjiMNEE3Drz6WfBFcCY3ejMUEURWGmU2WMNaYMxr1uhvaEvjNrQS/SOElxMV89C//RBa rNxcenTI0uVtyQdsyzpChke3XCFbGRYMKrflCDqd/4q0A9C+focm2aPoxCclY08AS+ha zgXrYdRdfNfE7DT4VhUwKbDa3tg0vSPJEIiqlT+2M2CocCHF27VGuqQz86LHqHC2np3+ XeAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GBBNpZI1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68-v6si1139516pgl.84.2018.06.01.01.27.29; Fri, 01 Jun 2018 01:27:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GBBNpZI1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751727AbeFAIZJ (ORCPT + 99 others); Fri, 1 Jun 2018 04:25:09 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:46447 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266AbeFAIZE (ORCPT ); Fri, 1 Jun 2018 04:25:04 -0400 Received: by mail-qk0-f193.google.com with SMTP id k86-v6so19260066qkh.13; Fri, 01 Jun 2018 01:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EAintyytu7XezSNgBhkpP5K3L7c1u0OzPPohisGITRI=; b=GBBNpZI1Cw9/8BR0uQWDCWl9ZfNLLc7IVqJibMPr/5zGkRjV4iyeivsHO0jmclmX4P kc/0VcmABhkeqkov1JXJM2Q7UYX8c/8fJSMFN31LxTdgv0b87UiQoaailRj9FqKlyoaE VzrDeHL8wrgXO2wKhzVotae4ex1y/YjILzWSdr7USni+LZieRZyGEiNtKijB/0IdAWhc cqIwZa9VnDgA6unTFDQQmmiKzfvBlpZw4lUgx3SKZq4cCtm71WiVtL1euHrkO+gZx/J+ Ros96/tAw7fI5pI6wOHxpJkBbYoTnm0VZTMkoQKKL9LzSlAT46djAWj68kHl0o5pDAoC 62QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EAintyytu7XezSNgBhkpP5K3L7c1u0OzPPohisGITRI=; b=bQh74h2+HG0h877jq5rgofzkHDuAJvQDPUsQkimWW82R3r2OP2JCB5PsC8HGF1p4ux /n4U+EixhnJONmaAQ0Q+VapvdMfyUxgBKb4WipmL7WlcSe1alszS8mCRgprIulmk9ry3 5nGSNucFSSzg/HH4ytH1V7Secg38PT9pzK/DTWzD/GeocYI/lRjzAQwVOebJ2Q+Dh7qo MutkYpmxR/64dRRYy9JpNHsMnDLMPlzdamd3AqFQnBgplIJJ36aACR4mAWcrTdxWCCPS EjpC36p0ZU9xvy6e+HtAXcwb3/2WbC1fp46hMatsVOnvHZxJALsB4820nZQRHSK84Fnq fgXg== X-Gm-Message-State: APt69E2L48IAaRV9E9ahKeG3YFePXR7RYUrLCbHsr95P9wWOQCFiKXSC dLroS7BjKJj7k6eYxQgGfrvTDUPFUs+xNDjo0WM= X-Received: by 2002:a37:1457:: with SMTP id e84-v6mr9250735qkh.3.1527841504203; Fri, 01 Jun 2018 01:25:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:98f9:0:0:0:0:0 with HTTP; Fri, 1 Jun 2018 01:25:03 -0700 (PDT) In-Reply-To: <1527807882.10176.11.camel@linux.intel.com> References: <20180525011056.25132-1-david.e.box@linux.intel.com> <1527807882.10176.11.camel@linux.intel.com> From: Andy Shevchenko Date: Fri, 1 Jun 2018 11:25:03 +0300 Message-ID: Subject: Re: [PATCH V2] platform/x86: intel_pmc_core: Add CNP SLPS0 debug registers To: David Box Cc: Andy Shevchenko , Rajneesh Bhardwaj , Vishwanath Somayaji , Darren Hart , kyle.d.pelton@linux.intel.com, Platform Driver , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 1, 2018 at 2:04 AM, David E. Box wrote: > On Thu, 2018-05-31 at 21:38 +0300, Andy Shevchenko wrote: >> On Fri, May 25, 2018 at 4:10 AM, David E. Box >> wrote: >> > +struct slps0_dbg_map { >> > + const struct pmc_bit_map *slps0_dbg_sts; >> > + int size; >> > +}; >> >> Didn't pay attention to this earlier. Why do we have a separate size >> member? What does it define? > > It holds the size of the pmc_bit_map array, assigned as shown here: > > +static const struct slps0_dbg_map cnp_slps0_dbg_maps[] = { > + {cnp_slps0_dbg0_map, ARRAY_SIZE(cnp_slps0_dbg0_map)}, > + {cnp_slps0_dbg1_map, ARRAY_SIZE(cnp_slps0_dbg1_map)}, > + {cnp_slps0_dbg2_map, ARRAY_SIZE(cnp_slps0_dbg2_map)}, > +}; I see. Please drop this and use a terminator instead like it's done for the rest map tables. -- With Best Regards, Andy Shevchenko