Received: by 10.192.165.156 with SMTP id m28csp791187imm; Fri, 13 Apr 2018 07:55:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+fyg6DLgF+/blUK3wgmaGwKzAvPSlub/QJZuqH7onNDNDOBQC+tSVhRa21KF8zkn/Zalbj X-Received: by 10.99.143.75 with SMTP id r11mr4376493pgn.341.1523631324583; Fri, 13 Apr 2018 07:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523631324; cv=none; d=google.com; s=arc-20160816; b=Vr8U8fZj2/Z+5hMGmouauc/2AB14RpaAIC5KkJQZZq4EjtH/pAWzkVf1qQQckO6ECS OoTWlWXm5NfASBNWC72wQEoS6mkbuqAFM/flk3QvHRSjxmq/luA9kOXXlYLT5ZUXTgei yZ1Fi5b05jhSolzMkUdYh/9APtBQ3rMxlebynvtm9xMZTFcyKPdHZsMKl+63z4Jh6vA/ LpRTqHicPtqWs+SIN4ZlZ7iRzbFWLo30hy2BccRo6zWCDrl6RBZxHmlIdtQ97uxNQCKw yxul6TY5dRrwTImRwikxWDhfNztkZxDle4D1+h14NENCyQNVqAOM5P7H6He2JGS0orl4 PGoA== 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=NKIj8jjegEQJIM41V5J6HvpPK4FBdIVrVsG++CZV5Q8=; b=okEesaPZVFGTpg4fJJFWctVohgOs3woaaBzi69/jpAwgk7C+uHD/q9jLatfUWmSILH XVULQltryEyq2wch2bmfiG0FcxwhsjlkTe9y2qIv2zzSWj2GVEP7sRFTxtbJjq2p+KvH t6oQzsaOKsJhhd/DhD3HcpzN02XuKh3YioOyuie5SvA2Z46vlOZPrrx96uPFjfaPeXGd 9ljWNSBoDoWZ7F4GBl6XG6O58ZtbwohV5t+CLsrrE+C8drZVaaafUIPYzZoVfrdtEhKR 39ZP8r1qMlzk8EiDgXF1XQONCy46xATYvPTdELzWad4bM0pxdoe/VJDbWtqHf1lnySG+ ijlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=JG+j/1rs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11-v6si2047780plk.468.2018.04.13.07.55.11; Fri, 13 Apr 2018 07:55:24 -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=fail header.i=@ffwll.ch header.s=google header.b=JG+j/1rs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752630AbeDMOxO (ORCPT + 99 others); Fri, 13 Apr 2018 10:53:14 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:53919 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752486AbeDMOxN (ORCPT ); Fri, 13 Apr 2018 10:53:13 -0400 Received: by mail-it0-f68.google.com with SMTP id m134-v6so3532582itb.3 for ; Fri, 13 Apr 2018 07:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=NKIj8jjegEQJIM41V5J6HvpPK4FBdIVrVsG++CZV5Q8=; b=JG+j/1rslph7ykaGOHmCl0a4iRfzGhIEnhudWU91i/d7YATkU1hvZRElt/tqi9LGE2 LKsTe+ThVbWZgmHdeucDUIQs5JuAK3C1g31mnd4jrPnlkxfdRLG0iadU8p3pdlzUYNl4 PoGw2ZwVlDx3/4btyTjF4ty6FJGrB69M8XR2c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=NKIj8jjegEQJIM41V5J6HvpPK4FBdIVrVsG++CZV5Q8=; b=r8p7hFJxFSPqXpfnDgnBvt7qLvZ1I5ZdnNOpfaihPCm3ndXI6iOpDi7Dyy9pE+YwCt kHMCbIBKsMTdYV0ImFCkexL6XEl/j4Co3uvykky94VCXasKRTX16JDTh8N8Msg40ZNbU A3qTcnHOEweAZWsSXSjrOEXJlRyK3LtrW6Tf3B9bLxMrZc/MNNoAT1iooNeAKAi715yA n+LvfAz+HKknnN7cL/6ZgLOv+otRvpzWtbfzUhMsXiwBNrON+vOUpowZmZNbIFnaUxej 76j05CsDZod6NsaoQvQN2sFjznA4VBrT7My+vVY+OFN6XN8MyLfOMT+mJaqzjbOGk3K7 tXXQ== X-Gm-Message-State: ALQs6tBz8IQAQPpawI1oYyJTyO78Mx4uYK7CEF6Gaqnv92hHGnnOwQjk 1asapbDI1giwGtr16313qGoC3ssu8Ehhp5Jugd7qbw== X-Received: by 2002:a24:468a:: with SMTP id j132-v6mr5589845itb.23.1523631192584; Fri, 13 Apr 2018 07:53:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.134.193 with HTTP; Fri, 13 Apr 2018 07:53:12 -0700 (PDT) X-Originating-IP: [212.51.149.109] In-Reply-To: <8ad514ec-7126-30d7-1c3f-332b6e574764@redhat.com> References: <1523612456-14827-1-git-send-email-thuth@redhat.com> <8ad514ec-7126-30d7-1c3f-332b6e574764@redhat.com> From: Daniel Vetter Date: Fri, 13 Apr 2018 16:53:12 +0200 X-Google-Sender-Auth: q9U6JQQaoPKYMGiJ-60Lmmfg-8E Message-ID: Subject: Re: [PATCH 0/2] drm: Make it compilable without CONFIG_HDMI and CONFIG_I2C To: Thomas Huth Cc: Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , dri-devel , borntraeger@de.ibm.com, Farhan Ali , Linux Kernel Mailing List , Gerd Hoffmann 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, Apr 13, 2018 at 4:46 PM, Thomas Huth wrote: > On 13.04.2018 16:32, Daniel Vetter wrote: >> On Fri, Apr 13, 2018 at 11:40 AM, Thomas Huth wrote: >>> By enabling the DRM code for virtio-gpu on S390, you currently also get >>> all the code that is enabled by CONFIG_HDMI and CONFIG_I2C automatically. >>> This is quite ugly, since on S390, there is no HDMI and no I2C. Thus it >>> would be great if the DRM code could also be compiled without CONFIG_HDMI >>> and CONFIG_I2C. These two patches now refactor the DRM code a little bit >>> so that we can compile it also without CONFIG_HDMI and CONFIG_I2C. >>> >>> Thomas Huth (2): >>> drivers/gpu/drm: Move CONFIG_HDMI-dependent code to a separate file >>> drivers/gpu/drm: Make the DRM code compilable without CONFIG_I2C >> >> What's the benefit? Why does I2C/HDMI hurt you? > > Why should I be forced to compile-in subsystems that do not make any > sense on this architecture? It's just completely weird to see CONFIG_I2C > enabled on s390x. "Looks wierd" is not really a good engineering criteria, especially in graphics :-) For context: In DRM almost nothing is optional, and it greatly simplifies life and coding. We don't have epic amounts of #ifdef battles to make trivial code changes compile, except in all the places where external stuff is optional (like backlight). So making something optional will have a pretty clear cost on the drm subsystem, and it doesn't make sense to pay that cost to "look less wierd". To get this merged we need some clear benefits, which will balance out the inevitable cost of having to maintain this forever (and most likely getting yelled at by Linus for making some rando compile config no longer work). -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch