Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1226902rdh; Mon, 25 Sep 2023 06:55:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnTu6li4CF309ZONms7jGXdYpNVME0lgNRgK55N6cgjJPFijkcWG1Gkb45UED/t2NLSCeY X-Received: by 2002:a17:902:ecc5:b0:1c6:e51:fe27 with SMTP id a5-20020a170902ecc500b001c60e51fe27mr5732946plh.28.1695650112482; Mon, 25 Sep 2023 06:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695650112; cv=none; d=google.com; s=arc-20160816; b=CJrOjJP8Ptd4SgQSmJUNTewmx/0EqddGTOwBa2pnVY9dLx86Q94X7Lt0z/FIhqIdcJ cVxM7pzVR8QHTKzcwvj0hy61xe8nkbT5/Oecq5fa9lkwmFFOoEE8kLPjw0Wi81zn4r92 fhJMd0x4Hz0Thpx9F2/MYfgA0OMogkx0LrK6eFFPweANPkQiWtEH/XQOwQMq5bRsslmU em8nBsRKLtLvavbPQxHKmwAjE76PrMPV069EvQoZRj5KF+fQiNKfkOLN8zRzdP+AHsZw PIICYJckt+dOyqAR2VUebeeG1MV519TJ9FvHlkFM4HdoQHZv5bvW4s8t1wCFyUVefIY7 GrQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1at5Bwmh4sCDy6jmu2eWw8wOIO0LjytvQnxyA14xNhk=; fh=1KNcQuW4QvchwPm7zj0cKq1sRMpJEHAjmLmvG/Y3Dhw=; b=k++YP37Vf4660AOLPkAYaKFqtCeKxX5QEP0jGlN/TQ2R2wgNezGfu0pHaOyuhZJ8ZC O3GPkITXr7cUudXmwcl/3j/pUUNwIca0y8KsrEXpt4iWmh6CFHP1Nfr8vmHhtY9nu1Dd 8PsVRDCIW88Ro7lvd+b5MPBGyhntlsXoTpEWEl9ViLziLJ9SUdSycy1G6rO/WYtTOHPG BcK9goyv4CN6iWvvIw1bMesJR1jrSuEWWZZ7F/+GZQi6sYwmT1Jc/kygR7ZU52O3azGA Q+K6JywedtYrsyDFsyJ/Rks4n2Gj8mWU9cSxKNQ0siYLd7Ae4I/HW2RVVEby0AvUAdnJ THWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GWYDiDzl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id d4-20020a170902cec400b001b9ea0f0e25si10633662plg.607.2023.09.25.06.54.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 06:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GWYDiDzl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 529C68158E83; Mon, 25 Sep 2023 01:52:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233081AbjIYIwc (ORCPT + 99 others); Mon, 25 Sep 2023 04:52:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233016AbjIYIwb (ORCPT ); Mon, 25 Sep 2023 04:52:31 -0400 Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26EC8FE; Mon, 25 Sep 2023 01:52:24 -0700 (PDT) Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5739965a482so3239492eaf.0; Mon, 25 Sep 2023 01:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695631943; x=1696236743; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1at5Bwmh4sCDy6jmu2eWw8wOIO0LjytvQnxyA14xNhk=; b=GWYDiDzlteRzzgXVbReYuGTddF2bT/fiaX6T+xFT6lwClhNh1SkrRD20H+Rw4AHdhU Oy3voHGvHt1i/MMc97WISIUZRrM5ZZftFlhdoS/D/pQku8DPJlwWBjb7qxCNY78KDQ6y 3p4+dVamIDSUQj2v6xXb5Q99es7CmsAykM4HBxbjTHC0ve9PZoz3VJ3DLhYeul1xF1oQ uYBcuS+6ezIkC814s4dt/YHdw7HEFteij4PzKertZ2AoSH059cF2tJuz6HuyRBM/HGJr Qt4byMHq/VFo9EjrLi4RYKAl+V9EBPi6RdlPGlPsqyB0/FnSkc8SRa47mgL9eAOT6bYz jcTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695631943; x=1696236743; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1at5Bwmh4sCDy6jmu2eWw8wOIO0LjytvQnxyA14xNhk=; b=GX4q4lZyvFrQhM/OI2Jv0Pz+52DwjVeNOYAVeIpLG8Vk2KXVgncjXdhF2q0io5wCby M+Zz5WF7bLo9086GOEwW9g1SO3R5u3FMlhPHneXrf1q9q2UuZS+759DjHBOLtAIrUmuD /uCi277SUmDNMAQyePy7R6iKKsL8ojvoPqg8nsdLlUgbNeaBvvL0W2EtnAXkF3ZOChHG 7D6U2Jl+A0Ix0fke4vK85EU0j1M28hurSOC1mveiTnEHmk+iWI5oxZj/YonwkvlqaYPg iMN5B9aqd/uQffVzLnKB5ag3jzrXoJkTz7XFlQi6uWpG6f8+d2hd1UR9yju/bwYniQpl Gy/w== X-Gm-Message-State: AOJu0YwN/vgG+lUeGB7tA4bcvTuoC77GIuEzQLYIKEfeShFgbKrvtrKu Xw7luus/eInMp96NhUkCo7+leKALdGb13zDGJHvZXVgMUws= X-Received: by 2002:a4a:2b02:0:b0:573:70a2:4233 with SMTP id i2-20020a4a2b02000000b0057370a24233mr3954867ooa.3.1695631943392; Mon, 25 Sep 2023 01:52:23 -0700 (PDT) MIME-Version: 1.0 References: <20230913214944.59804-1-blarson@amd.com> <20230913214944.59804-7-blarson@amd.com> <68ca306c-5ea2-437e-b7f1-68bad88557a0@app.fastmail.com> In-Reply-To: <68ca306c-5ea2-437e-b7f1-68bad88557a0@app.fastmail.com> From: Andy Shevchenko Date: Mon, 25 Sep 2023 11:51:47 +0300 Message-ID: Subject: Re: [PATCH v16 6/6] soc: amd: Add support for AMD Pensando SoC Controller To: Arnd Bergmann Cc: Brad Larson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "linux-mmc @ vger . kernel . org" , linux-spi@vger.kernel.org, Adrian Hunter , alcooperx@gmail.com, brendan.higgins@linux.dev, Brian Norris , Catalin Marinas , Conor Dooley , David Gow , gsomlo@gmail.com, Greg Ungerer , Hal Feng , Hitomi Hasegawa , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , Joel Stanley , Emil Renner Berthing , Krzysztof Kozlowski , krzysztof.kozlowski+dt@linaro.org, Lee Jones , Lee Jones , Mark Brown , Philipp Zabel , Randy Dunlap , Rob Herring , Samuel Holland , Serge Semin , Shuah Khan , suravee.suthikulpanit@amd.com, Tom Lendacky , Tony Huang , Ulf Hansson , vaishnav.a@ti.com, Walker Chen , Will Deacon , Yinbo Zhu , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 01:52:48 -0700 (PDT) On Fri, Sep 22, 2023 at 1:24=E2=80=AFPM Arnd Bergmann wrote= : > On Wed, Sep 13, 2023, at 17:49, Brad Larson wrote: ... > > v15 changes: > > - Drop custom ioctl and use existing miscdevice interface. > > - Delete unused definitions in amd-pensando-ctrl.h > > - Makefile change to compile for ARCH_PENSANDO > > Hi Brad, > > I'm sorry I've been out of the loop for so long, and I hope > we can find a way to manage your SoC support soon. My impression > is that the normal support patches (1, 3, 4, and 5) are largely > uncontroversial, while the SoC controller support seems like > we are still not converging onto something that is ready to > merge, so I would suggest you split the two parts and send > the basic support for inclusion in linux-6.7 while we continue > to discuss the soc controller driver. > > Please remove any references to the soc controller from the > dts files and send that first series to:soc@kernel.org > cc:linux-arm-kernel (and the other interested parties) so > I can pick those up. > > Regarding the soc controller driver, let me try to give > you my impression of where we are: > > - you have gone through 16 revisions already, which is way > too much for a public review, we should have been able > to find a solution earlier than that, and this is partly > our fault on the reviewer side, and I'm sorry about that. > > - Andy's latest comments and a lot of the earlier reviews > were focused on implementation details. While those comments > are helpful suggestions for improving the code, they miss > the larger point about the system design that I'm worried > about and probably don't help you actually get it merged. True. The fact that the new versions left the design remaining make me think that the ABI was settled down. > - The main problem I still see is that this driver completely > bypasses our normal kernel abstractions and instead creates > a low-level passthrough interface for handling kernel > functionality in userspace. This creates a liability both > for the user ABI and the kernel implementation and prevents > any > > - There is a chance that your design is in fact the > best way to handle this particular hardware, but it is > your job to write a convincing explanation of why this > platform is different from all the others in the patch > description. Your current one-paragraph text does not > explain this at all. > > I would suggest you prioritize getting the other patches > included for the moment, but we can keep discussion the > API design for this driver either in this thread or on the > #armlinux IRC channel (irc.libera.chat) in parallel if you > like. In order to help you here, I would need either > the documentation of the SPI software interface, or the > source code for the userspace tool. --=20 With Best Regards, Andy Shevchenko