Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5214875pxj; Wed, 9 Jun 2021 11:54:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYAjIWVz/GaR5VXOxKn5mi0xjx1uaBOT9Cl0UdoN4w6tqPVaTU+rfDeesVmTYQj3O/3T8n X-Received: by 2002:a50:ee84:: with SMTP id f4mr803042edr.97.1623264878399; Wed, 09 Jun 2021 11:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623264878; cv=none; d=google.com; s=arc-20160816; b=c1ApTQ4yMleN2GOfh0RFCDSJUGRk5R6VYf5enrW2urWM6UtN4GBYfr0HLpK5JqtNIP D8hX/xe1KLWmMY99m2tCPIOS7mxoGbzuqOUDTlE3r+HRWtvalZs8nPYYnuytGRN3FeE4 DMt0w/OtT83yaKHNvioD9aNNgXP5eSTG+XWnk7W/ukRGq2p+nmX/Vwi8BsH9D+Kz9bYb 69912E3D7U5quzvt9KaK5mCKc8hOZ5a2X3E5m6ZZhmUQ8yZjeo44oDwCoLZH9U/gs8Nl aStOo41iQTiDMLFks6l64GIxiHZQTw13BZti57qluSc1JMwghwZCc3/Vr6f13APSOtPP MfEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=UJv7aWmnObYZjIRak2zuvQQ+UDBG4ApcHE+EP2bUvao=; b=iE/IuA9NnfNLELpSWs9qcAIWKh/oaQ6rGwWkMq+bPqgspC90g0Ulb29CavbCnR/MDr Y1X+v7edfM8I9m5S/GfmV3fee3bqQ2WwY7D2ESc4yLuktvCd0rCW5qCpj00l10U+TlVh uJ/3UTUo+l/Be/Eir+W8RQgbvfG6ttvfmWYBvghrygz6lhEKq5NP44yX+53qIZho8+VH TUIpwsiJe5UyhLMu/Z+hDKxM7U2xqxt+cQsT3aYyfIjY7GVxl8uxa91yOOcXlAztEeNH /XlcFXc/hEzczTAXjIWSsdZRgOaWEMXhwqZKeavXG+dH1WD/9eHxW9bhYPWpAbbk+Ipr vkhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GJr4rohL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u21si383012edy.178.2021.06.09.11.54.14; Wed, 09 Jun 2021 11:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GJr4rohL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbhFISyt (ORCPT + 99 others); Wed, 9 Jun 2021 14:54:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:60624 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbhFISys (ORCPT ); Wed, 9 Jun 2021 14:54:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623264771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UJv7aWmnObYZjIRak2zuvQQ+UDBG4ApcHE+EP2bUvao=; b=GJr4rohL7ov7w2kyw7Px4y1AUjlHpwsVGMq9xIUad/6iNI91ADaucs9JDXNEjmFMIYDDD5 RCGYXuEruMiE6f9XkSOUgyy8FYTyPUzbUfDrpUa3Na/6HjSUPNux9dgWSZkhqZY2Nv8q7O d+3d8nZ2TbrJs0uMWdlv/nEuYLHinSQ= Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-448-ODdKX7FTNjKx_C_3B9Ouqw-1; Wed, 09 Jun 2021 14:52:50 -0400 X-MC-Unique: ODdKX7FTNjKx_C_3B9Ouqw-1 Received: by mail-oo1-f71.google.com with SMTP id v19-20020a4a31530000b029024944222912so11185459oog.1 for ; Wed, 09 Jun 2021 11:52:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=UJv7aWmnObYZjIRak2zuvQQ+UDBG4ApcHE+EP2bUvao=; b=Mil2qY3eTNfpI9lBCwyG/gSkIsr8FvDjAldM+cQY4VQyIAOSK3zq3cpRI7x+4tWVcC jAwItGhjg+RW3Kq1GnWHNZTAaeDP8o6CLPyMlY2oB6ixyVbHmWHNHieNn8MfBXhUvEj/ b3HsydZFmnqFlBPFMZhsN8bzeI0iIBcLUsV/fTlhZJFaHYmlWvRzR1K8DIOHasG8BNrr D8V8tIMSo3my9jQIA2tjUy6PlDUMsfjwB55zXqlUYVeGKC4Z+iAL8REq/DGweQsoo9GC yt5cNuuRTrCKpzGCRjGGfVVEKXkiHTXfUimiXeuH6/CHMEH7SQ817FPdSosF4w1PnigC ptJA== X-Gm-Message-State: AOAM532fMCEucBiDUHiVxB93kYVRGeeLrJ7T2wCTyqWghfPtLxgTDAPr 6pi0fzAQzgCDfQR0ic8rbvuzkTiZPnqiFjGAU3o/RpKoR78GZGDXUY8OAVlkZ1hysYanR8WFPKK NJaPEdR2cxUXkC+CPJ1p5bLWn X-Received: by 2002:a9d:1b41:: with SMTP id l59mr752432otl.8.1623264769456; Wed, 09 Jun 2021 11:52:49 -0700 (PDT) X-Received: by 2002:a9d:1b41:: with SMTP id l59mr752409otl.8.1623264769221; Wed, 09 Jun 2021 11:52:49 -0700 (PDT) Received: from localhost.localdomain (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id q26sm117297ood.7.2021.06.09.11.52.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 11:52:48 -0700 (PDT) Subject: Re: [PATCH v2 0/4] fpga: reorganize to subdirs To: Greg KH Cc: mdf@kernel.org, hao.wu@intel.com, michal.simek@xilinx.com, nava.manne@xilinx.com, dinguyen@kernel.org, krzysztof.kozlowski@canonical.com, yilun.xu@intel.com, arnd@arndb.de, fpacheco@redhat.com, richard.gong@intel.com, luca@lucaceresoli.net, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20210609142208.3085451-1-trix@redhat.com> <2738ee7a-448f-c327-c430-13fb44da45ec@redhat.com> From: Tom Rix Message-ID: Date: Wed, 9 Jun 2021 11:52:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/9/21 10:13 AM, Greg KH wrote: > On Wed, Jun 09, 2021 at 09:50:39AM -0700, Tom Rix wrote: >> On 6/9/21 9:38 AM, Greg KH wrote: >>> On Wed, Jun 09, 2021 at 08:08:06AM -0700, Tom Rix wrote: >>>> On 6/9/21 7:53 AM, Greg KH wrote: >>>>> On Wed, Jun 09, 2021 at 07:22:03AM -0700, trix@redhat.com wrote: >>>>>> From: Tom Rix >>>>>> >>>>>> The incoming xrt patchset has a toplevel subdir xrt/ >>>>>> The current fpga/ uses a single dir with filename prefixes to subdivide owners >>>>>> For consistency, there should be only one way to organize the fpga/ dir. >>>>>> Because the subdir model scales better, refactor to use it. >>>>>> The discussion wrt xrt is here: >>>>>> https://lore.kernel.org/linux-fpga/68e85a4f-4a10-1ff9-0443-aa565878c855@redhat.com/ >>>>>> >>>>>> Follow drivers/net/ethernet/ which has control configs >>>>>> NET_VENDOR_BLA that map to drivers/net/ethernet/bla >>>>>> Since fpgas do not have many vendors, drop the 'VENDOR' and use >>>>>> FPGA_BLA. >>>>>> >>>>>> There are several new subdirs >>>>>> altera/ >>>>>> dfl/ >>>>>> lattice/ >>>>>> xilinx/ >>>>>> >>>>>> Each subdir has a Kconfig that has a new/reused >>>>>> >>>>>> if FPGA_BLA >>>>>> ... existing configs ... >>>>>> endif FPGA_BLA >>>>>> >>>>>> Which is sourced into the main fpga/Kconfig >>>>>> >>>>>> Each subdir has a Makefile whose transversal is controlled in the >>>>>> fpga/Makefile by >>>>>> >>>>>> obj-$(CONFIG_FPGA_BLA) += bla/ >>>>>> >>>>>> Some cleanup to arrange thing alphabetically and make fpga/Makefile's >>>>>> whitespace look more like net/'s >>>>>> >>>>>> Changes from >>>>>> v1 >>>>>> Drop renaming files >>>>>> Cleanup makefiles >>>>> You can rename the files, you just can not rename the .ko objects >>>>> without everyone knowing what you are doing and you trying to bury it in >>>>> the middle of a differently described patch. >>>>> >>>>> If you want to do that, do you? I don't really understand why you want >>>>> to move things around right now other than "we have 40 files in one >>>>> directory, ick!". >>>> I am trying to resolve the layout inconsistency between what we have and >>>> what the xrt patchset does. >>> Why does it matter? New stuff can be added to a new dir, why worry >>> about old stuff? What does it hurt? >>> >>>> The big issue is the files vs dirs. >>>> >>>> Over specified filenames is secondary, so I dropped them. >>>> >>>> 40 files in one dir is itself not a problem. >>>> >>>> having 40 files and an xrt/ is. >>> Why is that a "problem"? >>> >>>> fpga/ layout should be consistent so the Makefile and Kconfig are easier to >>>> maintain. >>> Is it somehow hard to maintain today? Seems pretty trivial to me... >> This change was to help move xrt along. >> >> If you are fine with xrt/, I will drop this patchset. > Who has objected to xrt/ being the only new subdirectory? Maybe just me, but it has been mostly me doing the review. all of my easy comments have been nearly resolved. now I am looking at bigger issues like this, should subdev's move out of fpga/ etc. > > My main complaints here are: > - these patches were not tested > - you renamed kernel modules "accidentally" > - you forgot SPDX lines > - lack of description of why these files being moved was > necessary in the changelog where you moved the files > > Remember, patch 0/X never shows up in changelogs... I will respin and collapse the patches to a single patch with a better commit log. They aren't really useful except as a full change. Testing will be done for dfl. Tom > > You can do better :) > > greg k-h >