}
 }
 
+#ifdef CONFIG_SND_PROC_FS
+static void dump_ump_info(struct snd_info_buffer *buffer,
+                         struct snd_seq_client *client)
+{
+       struct snd_ump_endpoint_info *ep;
+       struct snd_ump_block_info *bp;
+       int i;
+
+       if (!client->ump_info)
+               return;
+       ep = client->ump_info[SNDRV_SEQ_CLIENT_UMP_INFO_ENDPOINT];
+       if (ep && *ep->name)
+               snd_iprintf(buffer, "  UMP Endpoint: \"%s\"\n", ep->name);
+       for (i = 0; i < SNDRV_UMP_MAX_BLOCKS; i++) {
+               bp = client->ump_info[i + 1];
+               if (bp && *bp->name) {
+                       snd_iprintf(buffer, "  UMP Block %d: \"%s\" [%s]\n",
+                                   i, bp->name,
+                                   bp->active ? "Active" : "Inactive");
+                       snd_iprintf(buffer, "    Groups: %d-%d\n",
+                                   bp->first_group + 1,
+                                   bp->first_group + bp->num_groups);
+               }
+       }
+}
+#endif
+
 /* UMP-specific ioctls -- called directly without data copy */
 static int snd_seq_ioctl_client_ump_info(struct snd_seq_client *caller,
                                         unsigned int cmd,
                            c, client->name,
                            client->type == USER_CLIENT ? "User" : "Kernel",
                            midi_version_string(client->midi_version));
+#if IS_ENABLED(CONFIG_SND_SEQ_UMP)
+               dump_ump_info(buffer, client);
+#endif
                snd_seq_info_dump_ports(buffer, client);
                if (snd_seq_write_pool_allocated(client)) {
                        snd_iprintf(buffer, "  Output pool :\n");