public inbox for openbmc@ozlabs.org
 help / color / mirror / Atom feed
From: Andrew Jeffery <andrew@codeconstruct.com.au>
To: Ninad Palsule <ninad@linux.ibm.com>,
	openbmc@lists.ozlabs.org,  joel@jms.id.au, eajames@linux.ibm.com
Cc: Andrew Jeffery <andrew@aj.id.au>
Subject: Re: [PATCH linux dev-6.12 v1 1/6] soc: aspeed: Add XDMA Engine Driver
Date: Wed, 03 Sep 2025 11:44:35 +0930	[thread overview]
Message-ID: <3213e3a2b9845e23734eda3b8850e683ed5ef7b1.camel@codeconstruct.com.au> (raw)
In-Reply-To: <20250902183155.2988560-2-ninad@linux.ibm.com>

On Tue, 2025-09-02 at 13:31 -0500, Ninad Palsule wrote:
> From: Eddie James <eajames@linux.ibm.com>
> 
> The XDMA engine embedded in the AST2500 and AST2600 SOCs performs PCI
> DMA operations between the SOC (acting as a BMC) and a host processor
> in a server.
> 
> This commit adds a driver to control the XDMA engine and adds functions
> to initialize the hardware and memory and start DMA operations.
> 
> Signed-off-by: Eddie James <eajames@linux.ibm.com>
> Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
> Reviewed-by: Joel Stanley <joel@jms.id.au>
> Link: https://lore.kernel.org/r/1588697905-23444-3-git-send-email-eajames@linux.ibm.com
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> Signed-off-by: Ninad Palsule <ninad@linux.ibm.com>
> ---
>  MAINTAINERS                      |   2 +
>  drivers/soc/aspeed/Kconfig       |  10 +
>  drivers/soc/aspeed/Makefile      |   1 +
>  drivers/soc/aspeed/aspeed-xdma.c | 961 +++++++++++++++++++++++++++++++
>  include/uapi/linux/aspeed-xdma.h |  38 ++
>  5 files changed, 1012 insertions(+)
>  create mode 100644 drivers/soc/aspeed/aspeed-xdma.c
>  create mode 100644 include/uapi/linux/aspeed-xdma.h

Applying this to dev-6.12 and building it for aspeed_g5_defconfig
produces:

   ../drivers/soc/aspeed/aspeed-xdma.c: In function ‘aspeed_xdma_probe’:                                                                                          
   ../drivers/soc/aspeed/aspeed-xdma.c:844:1: warning: label ‘err_misc’ defined but not used [-Wunused-label]
     844 | err_misc:              
         | ^~~~~~~~                                                               
   ../drivers/soc/aspeed/aspeed-xdma.c: In function ‘aspeed_xdma_remove’:                                                                                         
   ../drivers/soc/aspeed/aspeed-xdma.c:885:9: error: implicit declaration of function ‘misc_deregister’; did you mean ‘bus_unregister’? [-Werror=implicit-function-declaration]
     885 |         misc_deregister(&ctx->misc);                                   
         |         ^~~~~~~~~~~~~~~                                                
         |         bus_unregister                                                 
   ../drivers/soc/aspeed/aspeed-xdma.c:885:29: error: ‘struct aspeed_xdma’ has no member named ‘misc’                                                             
     885 |         misc_deregister(&ctx->misc);           
         |                             ^~
   ../drivers/soc/aspeed/aspeed-xdma.c: At top level:                                                                                                             
   ../drivers/soc/aspeed/aspeed-xdma.c:423:12: warning: ‘aspeed_xdma_start’ defined but not used [-Wunused-function]                                              
     423 | static int aspeed_xdma_start(struct aspeed_xdma *ctx, unsigned int num_cmds,                                                                           
         |            ^~~~~~~~~~~~~~~~~                                           
   cc1: some warnings being treated as errors                                     
   make[6]: *** [../scripts/Makefile.build:229: drivers/soc/aspeed/aspeed-xdma.o] Error 1                                                                         
   make[5]: *** [../scripts/Makefile.build:478: drivers/soc/aspeed] Error 2       
   make[4]: *** [../scripts/Makefile.build:478: drivers/soc] Error 2              
   make[4]: *** Waiting for unfinished jobs....   

Can you please fix these?

Also, during application, checkpatch complained:

     ✓ [PATCH v1 1/6] soc: aspeed: Add XDMA Engine Driver                         
       + Link: https://patch.msgid.link/20250902183155.2988560-2-ninad@linux.ibm.com                                                                                                                                                                                                                                              
       + Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>              
       ● checkpatch.pl: 164: WARNING: please write a help paragraph that fully describes the config symbol
       ● checkpatch.pl: 228: WARNING: please, no space before tabs                
       ● checkpatch.pl: 563: WARNING: quoted string split across lines            
       ● checkpatch.pl: 834: WARNING: struct kobj_type should normally be const                                                                                   
       ● checkpatch.pl: 959: WARNING: Possible unnecessary 'out of memory' message 
       ● checkpatch.pl: 1152: WARNING: Prefer "GPL" over "GPL v2" - see commit bf7fbeeae6db ("module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity")

Can you please address these as well when posting v2?

Thanks,

Andrew


  reply	other threads:[~2025-09-03  2:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-02 18:31 [PATCH linux dev-6.12 v1 0/6] Port linux fixes from dev-6.6 Ninad Palsule
2025-09-02 18:31 ` [PATCH linux dev-6.12 v1 1/6] soc: aspeed: Add XDMA Engine Driver Ninad Palsule
2025-09-03  2:14   ` Andrew Jeffery [this message]
2025-09-02 18:31 ` [PATCH linux dev-6.12 v1 2/6] soc: aspeed: xdma: Add user interface Ninad Palsule
2025-09-02 18:31 ` [PATCH linux dev-6.12 v1 3/6] soc: aspeed: xdma: Add reset ioctl Ninad Palsule
2025-09-02 18:31 ` [PATCH linux dev-6.12 v1 4/6] soc: aspeed: xdma: Add trace events Ninad Palsule
2025-09-02 18:31 ` [PATCH linux dev-6.12 v1 5/6] i2c: core: Add mux root adapter operations Ninad Palsule
2025-09-02 18:31 ` [PATCH linux dev-6.12 v1 6/6] iio: si7020: Lock root adapter to wait for reset Ninad Palsule

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3213e3a2b9845e23734eda3b8850e683ed5ef7b1.camel@codeconstruct.com.au \
    --to=andrew@codeconstruct.com.au \
    --cc=andrew@aj.id.au \
    --cc=eajames@linux.ibm.com \
    --cc=joel@jms.id.au \
    --cc=ninad@linux.ibm.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox